Fix: DSL backup (#6616)

This commit is contained in:
KVOJJJin 2024-07-24 15:02:30 +08:00 committed by GitHub
parent 3c78fdec1c
commit 2aad128883
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -434,7 +434,7 @@ const AppInfo = ({ expand }: IAppInfoProps) => {
{showImportDSLModal && (
<UpdateDSLModal
onCancel={() => setShowImportDSLModal(false)}
onBackup={onExport}
onBackup={exportCheck}
/>
)}
{secretEnvList.length > 0 && (

View File

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