From 6d7b5f2cd52140bebc0d203f71730d14e6a97614 Mon Sep 17 00:00:00 2001 From: Kacper Wojciechowski <39823706+jog1t@users.noreply.github.com> Date: Wed, 8 Oct 2025 22:34:05 +0200 Subject: [PATCH] fix: buildQueryOptions error --- frontend/src/app/layout.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/layout.tsx b/frontend/src/app/layout.tsx index e481c960cd..1c3c0ad64e 100644 --- a/frontend/src/app/layout.tsx +++ b/frontend/src/app/layout.tsx @@ -42,6 +42,7 @@ import { Skeleton, } from "@/components"; import { + useDataProvider, useDataProviderCheck, useInspectorDataProvider, } from "@/components/actors"; @@ -392,6 +393,7 @@ const Subnav = () => { : { to: "/", fuzzy: true }, ); const hasDataProvider = useDataProviderCheck(); + const hasQuery = !!useDataProvider().buildsQueryOptions; if (nsMatch === false) { return null; @@ -409,7 +411,7 @@ const Subnav = () => { Connect ) : null} - {hasDataProvider ? ( + {hasDataProvider && hasQuery ? (
Instances @@ -542,6 +544,7 @@ function CloudSidebarContent() { }); const hasDataProvider = useDataProviderCheck(); + const hasQuery = !!useDataProvider().buildsQueryOptions; if (matchNamespace) { return ( @@ -554,7 +557,7 @@ function CloudSidebarContent() { > Connect - {hasDataProvider ? ( + {hasDataProvider && hasQuery ? (
Instances