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} /> )