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