From aced5c550f4f74278eee67c35f8d5a6e4300a7d6 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Mon, 29 Jan 2024 11:26:58 +0100 Subject: [PATCH] #731 - Fix in sorting --- src/dashboardWebView/components/App.tsx | 2 +- src/dashboardWebView/hooks/usePages.tsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dashboardWebView/components/App.tsx b/src/dashboardWebView/components/App.tsx index 9548681a..9b4cdfeb 100644 --- a/src/dashboardWebView/components/App.tsx +++ b/src/dashboardWebView/components/App.tsx @@ -30,7 +30,7 @@ export interface IAppProps { export const App: React.FunctionComponent = ({ showWelcome }: React.PropsWithChildren) => { - const { loading, pages, settings, localeReady } = useMessages(); + const { pages, settings, localeReady } = useMessages(); const view = useRecoilValue(DashboardViewSelector); const mode = useRecoilValue(ModeAtom); const [isDevMode, setIsDevMode] = useState(false); diff --git a/src/dashboardWebView/hooks/usePages.tsx b/src/dashboardWebView/hooks/usePages.tsx index cb8a468e..6ab132ba 100644 --- a/src/dashboardWebView/hooks/usePages.tsx +++ b/src/dashboardWebView/hooks/usePages.tsx @@ -197,6 +197,8 @@ export default function usePages(pages: Page[]) { if (key === ExtensionState.Dashboard.Contents.Sorting && value) { setSorting(value); return; + } else { + startPageProcessing(); } }); } else {