From 5b3817af22fe9094fc7b198f7ffbec7c4899f740 Mon Sep 17 00:00:00 2001 From: Ibrahim Ansari Date: Fri, 20 Dec 2024 23:39:59 +0530 Subject: [PATCH] Force re-render of console and file on nav --- pages/dashboard/[server]/console.tsx | 8 ++++++-- pages/dashboard/[server]/files/[[...path]].tsx | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/pages/dashboard/[server]/console.tsx b/pages/dashboard/[server]/console.tsx index a28872a..4aafcf3 100644 --- a/pages/dashboard/[server]/console.tsx +++ b/pages/dashboard/[server]/console.tsx @@ -268,7 +268,7 @@ const Console = ({ } const ConsolePage = (): React.JSX.Element => { - const { server, nodeExists } = useOctyneData() + const { server, node, nodeExists } = useOctyneData() const [serverExists, setServerExists] = useState(true) const [authenticated, setAuthenticated] = useState(true) return ( @@ -284,7 +284,11 @@ const ConsolePage = (): React.JSX.Element => { ) : !authenticated ? ( ) : ( - + )} diff --git a/pages/dashboard/[server]/files/[[...path]].tsx b/pages/dashboard/[server]/files/[[...path]].tsx index 5876b16..f661ca4 100644 --- a/pages/dashboard/[server]/files/[[...path]].tsx +++ b/pages/dashboard/[server]/files/[[...path]].tsx @@ -8,7 +8,7 @@ import DashboardLayout from '../../../../imports/dashboard/dashboardLayout' import FileManager from '../../../../imports/dashboard/files/fileManager' const Files: NextPage> = () => { - const { nodeExists } = useOctyneData() + const { server, node, nodeExists } = useOctyneData() const [serverExists, setServerExists] = useState(true) const [authenticated, setAuthenticated] = useState(true) @@ -20,7 +20,11 @@ const Files: NextPage> = () => { ) : !authenticated ? ( ) : ( - + )}