diff --git a/web/app/components/app-sidebar/__tests__/app-detail-section.spec.tsx b/web/app/components/app-sidebar/__tests__/app-detail-section.spec.tsx index 30a77515aaf..c33168c2cc9 100644 --- a/web/app/components/app-sidebar/__tests__/app-detail-section.spec.tsx +++ b/web/app/components/app-sidebar/__tests__/app-detail-section.spec.tsx @@ -54,10 +54,6 @@ vi.mock('../app-info', () => ({ AppInfoView: () =>
, })) -vi.mock('../app-info/use-app-info-actions', () => ({ - useAppInfoActions: vi.fn(() => ({})), -})) - vi.mock('../nav-link', () => ({ default: ({ name, href }: { name: string; href: string }) => {name}, })) diff --git a/web/app/components/app-sidebar/app-detail-section.tsx b/web/app/components/app-sidebar/app-detail-section.tsx index 5a7a9267f74..b0f2a2245f5 100644 --- a/web/app/components/app-sidebar/app-detail-section.tsx +++ b/web/app/components/app-sidebar/app-detail-section.tsx @@ -14,7 +14,6 @@ import { usePathname } from '@/next/navigation' import { AppModeEnum } from '@/types/app' import { getAppACLCapabilities } from '@/utils/permission' import { AppInfoView } from './app-info' -import { useAppInfoActions } from './app-info/use-app-info-actions' import NavLink from './nav-link' type AppDetailNavItem = { @@ -52,9 +51,6 @@ const AppDetailSection = ({ expand = true }: AppDetailSectionProps) => { const workspacePermissionKeys = useAtomValue(workspacePermissionKeysAtom) const isRbacEnabled = systemFeatures.rbac_enabled const appDetail = useStore((state) => state.appDetail) - const appInfoActions = useAppInfoActions({ - resetKey: appDetail?.id, - }) const navigation = useMemo(() => { if (!appDetail) return [] @@ -164,7 +160,7 @@ const AppDetailSection = ({ expand = true }: AppDetailSectionProps) => {
)}
- +