File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/layouts/AuthenticatedLayout Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import Settings from "@/assets/icons/settings.svg?react";
66import SideCollapse from "@/assets/icons/side-collapse.svg?react" ;
77import Stacks from "@/assets/icons/stack.svg?react" ;
88
9+ import { checkIsLocalServer } from "@/lib/server" ;
910import { routes } from "@/router/routes" ;
1011import {
1112 Button ,
@@ -20,15 +21,15 @@ import {
2021} from "@zenml-io/react-component-library" ;
2122import { ReactNode } from "react" ;
2223import { Link , LinkProps , matchPath , useLocation } from "react-router-dom" ;
24+ import { useServerInfo } from "../../data/server/info-query" ;
2325import { OnboardingItem } from "./OnboardingItem" ;
2426import { SidebarImage , SidebarTitle } from "./SidebarFragments" ;
2527import { WhatsNewButton } from "./WhatsNewButton" ;
26- import { useServerInfo } from "../../data/server/info-query" ;
2728
2829export function Sidebar ( ) {
2930 const { setIsOpen, isOpen } = useSidebarContext ( ) ;
3031 const serverInfo = useServerInfo ( ) ;
31- const isLocal = serverInfo . data ?. deployment_type === "local" ;
32+ const isLocal = checkIsLocalServer ( serverInfo . data ?. deployment_type || "other" ) ;
3233 return (
3334 < div >
3435 < ZenMLSidebar
You can’t perform that action at this time.
0 commit comments