Skip to content

Commit 6ba0a57

Browse files
chore: small adjustment (#621)
1 parent 87d3931 commit 6ba0a57

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/layouts/AuthenticatedLayout/Sidebar.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Settings from "@/assets/icons/settings.svg?react";
66
import SideCollapse from "@/assets/icons/side-collapse.svg?react";
77
import Stacks from "@/assets/icons/stack.svg?react";
88

9+
import { checkIsLocalServer } from "@/lib/server";
910
import { routes } from "@/router/routes";
1011
import {
1112
Button,
@@ -20,15 +21,15 @@ import {
2021
} from "@zenml-io/react-component-library";
2122
import { ReactNode } from "react";
2223
import { Link, LinkProps, matchPath, useLocation } from "react-router-dom";
24+
import { useServerInfo } from "../../data/server/info-query";
2325
import { OnboardingItem } from "./OnboardingItem";
2426
import { SidebarImage, SidebarTitle } from "./SidebarFragments";
2527
import { WhatsNewButton } from "./WhatsNewButton";
26-
import { useServerInfo } from "../../data/server/info-query";
2728

2829
export 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

0 commit comments

Comments
 (0)