From abc3c2c25ad71244f8818a947f77c7c5fecb5c2d Mon Sep 17 00:00:00 2001 From: jialin Date: Mon, 18 May 2026 16:57:59 +0800 Subject: [PATCH] fix: instance events namespace --- src/layouts/index.tsx | 2 +- .../instances/services/use-query-instance-events.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layouts/index.tsx b/src/layouts/index.tsx index 69487ad5..34937170 100644 --- a/src/layouts/index.tsx +++ b/src/layouts/index.tsx @@ -358,7 +358,7 @@ export default (props: any) => { config={{ apiBaseUrl: GPUSTACK_API_BASE_URL, theme: userSettings.theme, - iconUrl: '//at.alicdn.com/t/c/font_4613488_vy4szhexci.js', + iconUrl: '//at.alicdn.com/t/c/font_4613488_0ear6uwu4lzg.js', isDarkTheme: userSettings.isDarkTheme, defaultColorPrimary: COLOR_PRIMARY }} diff --git a/src/pages/gpu-service/instances/services/use-query-instance-events.ts b/src/pages/gpu-service/instances/services/use-query-instance-events.ts index d8ef7166..f72d1ca6 100644 --- a/src/pages/gpu-service/instances/services/use-query-instance-events.ts +++ b/src/pages/gpu-service/instances/services/use-query-instance-events.ts @@ -1,5 +1,5 @@ import { currentClusterAtom } from '@/atoms/gpuservice'; -import { getCurrentOrganizationId } from '@/atoms/user'; +import { getCurrentOrgNamespace } from '@/atoms/user'; import { useQueryData } from '@gpustack/core-ui'; import { useAtomValue } from 'jotai'; import { useCallback } from 'react'; @@ -12,9 +12,9 @@ interface QueryInstanceEventsParams { } export default function useQueryInstanceEvents() { - const namespace = getCurrentOrganizationId(); const currentCluster = useAtomValue(currentClusterAtom); const clusterID = currentCluster?.id; + const namespace = getCurrentOrgNamespace(currentCluster?.owner_principal_id); const fetchDetail = useCallback( (params: QueryInstanceEventsParams, options?: any) =>