From 21f7a49b4e41cf887f0dceb55a94efa435be1bbe Mon Sep 17 00:00:00 2001 From: hjlarry Date: Tue, 23 Sep 2025 15:44:57 +0800 Subject: [PATCH] fix restore page crash --- web/app/components/workflow/header/header-in-restoring.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/app/components/workflow/header/header-in-restoring.tsx b/web/app/components/workflow/header/header-in-restoring.tsx index d9cfa2d842..0f0bdcc86a 100644 --- a/web/app/components/workflow/header/header-in-restoring.tsx +++ b/web/app/components/workflow/header/header-in-restoring.tsx @@ -19,6 +19,7 @@ import RestoringTitle from './restoring-title' import Button from '@/app/components/base/button' import { useInvalidAllLastRun } from '@/service/use-workflow' import { useHooksStore } from '../hooks-store' +import { useStore as useAppStore } from '@/app/components/app/store' import useTheme from '@/hooks/use-theme' import cn from '@/utils/classnames' import { collaborationManager } from '../collaboration/core/collaboration-manager' @@ -32,6 +33,7 @@ const HeaderInRestoring = ({ const { t } = useTranslation() const { theme } = useTheme() const workflowStore = useWorkflowStore() + const appDetail = useAppStore.getState().appDetail const configsMap = useHooksStore(s => s.configsMap) const invalidAllLastRun = useInvalidAllLastRun(configsMap?.flowType, configsMap?.flowId) const {