Skip to content

Commit

Permalink
update siterouter
Browse files Browse the repository at this point in the history
  • Loading branch information
Qi Liu committed Nov 19, 2024
1 parent a558d14 commit 5d8da7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client-react/src/pages/app/SiteRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const SiteRouter: React.FC<RouteComponentProps<SiteRouterProps>> = () => {
const [isWordPressApplication, setIsWordPressApplication] = useState<boolean>(false);
const [isKubeApplication, setIsKubeApplication] = useState<boolean>(false);
const [isFlexConsumptionApplication, setIsFlexConsumptionApplication] = useState<boolean>(false);
const [isWorkflowApploading, setIsWorkflowApploading] = useState<boolean>(false);
const [isWorkflowApplication, setIsWorkflowApplication] = useState<boolean>(false);
const [isLoading, setIsLoading] = useState<boolean>(false);

const fetchDataAndSetState = useCallback(async (resourceId?: string) => {
Expand Down Expand Up @@ -141,7 +141,7 @@ const SiteRouter: React.FC<RouteComponentProps<SiteRouterProps>> = () => {
setIsKubeApplication(isKubeApp(site));
setSiteAppEditState(editMode);
setIsFlexConsumptionApplication(isFlexConsumption(site));
setIsWordPressApplication(isWorkflowApp(site));
setIsWorkflowApplication(isWorkflowApp(site));
}
}
}, []);
Expand All @@ -167,7 +167,7 @@ const SiteRouter: React.FC<RouteComponentProps<SiteRouterProps>> = () => {
isWordPressApp: isWordPressApplication,
isKubeApp: isKubeApplication,
isFlexConsumptionApp: isFlexConsumptionApplication,
isWorkflowApp: isWordPressApplication,
isWorkflowApp: isWorkflowApplication,
refresh: () => fetchDataAndSetState(resourceId),
setIsLoading,
}}>
Expand Down

0 comments on commit 5d8da7a

Please sign in to comment.