From e07951c1712fbc569945bcdc1f67628343f48f80 Mon Sep 17 00:00:00 2001 From: AlinaGoaga <35202557+AlinaGoaga@users.noreply.github.com> Date: Fri, 29 Dec 2023 15:42:50 +0100 Subject: [PATCH] Use apps hook if explorer isnt enabled (#3746) --- ui/src/components/Applications/Sources.tsx | 1 + ui/src/components/Applications/index.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/components/Applications/Sources.tsx b/ui/src/components/Applications/Sources.tsx index ef5199f31f..82a1300fb1 100644 --- a/ui/src/components/Applications/Sources.tsx +++ b/ui/src/components/Applications/Sources.tsx @@ -21,6 +21,7 @@ const WGApplicationsSources: FC = ({ className }: any) => { retry: false, refetchInterval: 5000, }); + const { setNotifications } = useNotifications(); useEffect(() => { diff --git a/ui/src/components/Applications/index.tsx b/ui/src/components/Applications/index.tsx index ba671c030e..6fea252fe4 100644 --- a/ui/src/components/Applications/index.tsx +++ b/ui/src/components/Applications/index.tsx @@ -30,7 +30,7 @@ const WGApplicationsDashboard: FC = ({ className }: any) => { ); const { data: automations, isLoading } = useListAutomations('', { - enabled: isExplorerEnabled, + enabled: !isExplorerEnabled, retry: false, refetchInterval: 5000, });