소스 검색

Fix: DSL backup (#6616)

KVOJJJin 9 달 전
부모
커밋
2aad128883
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      web/app/components/app-sidebar/app-info.tsx
  2. 2 1
      web/app/components/workflow/index.tsx

+ 1 - 1
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 && (

+ 2 - 1
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}
           />
         )