From d9dce326511d9aa1b8b6cec687fa462f56248ee9 Mon Sep 17 00:00:00 2001 From: KVOJJJin Date: Wed, 24 Jul 2024 15:02:30 +0800 Subject: [PATCH] Fix: DSL backup (#6616) --- web/app/components/app-sidebar/app-info.tsx | 2 +- web/app/components/workflow/index.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/app/components/app-sidebar/app-info.tsx b/web/app/components/app-sidebar/app-info.tsx index 90d3717d2cb6fb..3f52e9d6f5b7b3 100644 --- a/web/app/components/app-sidebar/app-info.tsx +++ b/web/app/components/app-sidebar/app-info.tsx @@ -434,7 +434,7 @@ const AppInfo = ({ expand }: IAppInfoProps) => { {showImportDSLModal && ( setShowImportDSLModal(false)} - onBackup={onExport} + onBackup={exportCheck} /> )} {secretEnvList.length > 0 && ( diff --git a/web/app/components/workflow/index.tsx b/web/app/components/workflow/index.tsx index 92fed2defa43d0..0f69b56840b1b2 100644 --- a/web/app/components/workflow/index.tsx +++ b/web/app/components/workflow/index.tsx @@ -248,6 +248,7 @@ const Workflow: FC = memo(({ } = useWorkflow() const { handleStartWorkflowRun } = useWorkflowStartRun() const { + exportCheck, handleExportDSL, } = useDSL() @@ -334,7 +335,7 @@ const Workflow: FC = memo(({ showImportDSLModal && ( setShowImportDSLModal(false)} - onBackup={handleExportDSL} + onBackup={exportCheck} onImport={handlePaneContextmenuCancel} /> )