Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Fix: DSL backup (#6616)

KVOJJJin2aad128883be
diff --git a/web/app/components/app-sidebar/app-info.tsx b/web/app/components/app-sidebar/app-info.tsx
index 90d3717d2cb..3f52e9d6f5b 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 && (
<UpdateDSLModal
onCancel={() => 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 92fed2defa4..0f69b56840b 100644
--- a/web/app/components/workflow/index.tsx
+++ b/web/app/components/workflow/index.tsx
@@ -248,6 +248,7 @@ const Workflow: FC<WorkflowProps> = memo(({
} = useWorkflow()
const { handleStartWorkflowRun } = useWorkflowStartRun()
const {
+ exportCheck,
handleExportDSL,
} = useDSL()
@@ -334,7 +335,7 @@ const Workflow: FC<WorkflowProps> = memo(({
showImportDSLModal && (
<UpdateDSLModal
onCancel={() => setShowImportDSLModal(false)}
- onBackup={handleExportDSL}
+ onBackup={exportCheck}
onImport={handlePaneContextmenuCancel}
/>
)