Skip to content

Commit

Permalink
Fix: DSL backup (langgenius#6616)
Browse files Browse the repository at this point in the history
  • Loading branch information
JzoNgKVO authored and cuiks committed Aug 6, 2024
1 parent fcce31d commit d9dce32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/app/components/app-sidebar/app-info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ const AppInfo = ({ expand }: IAppInfoProps) => {
{showImportDSLModal && (
<UpdateDSLModal
onCancel={() => setShowImportDSLModal(false)}
onBackup={onExport}
onBackup={exportCheck}
/>
)}
{secretEnvList.length > 0 && (
Expand Down
3 changes: 2 additions & 1 deletion web/app/components/workflow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ const Workflow: FC<WorkflowProps> = memo(({
} = useWorkflow()
const { handleStartWorkflowRun } = useWorkflowStartRun()
const {
exportCheck,
handleExportDSL,
} = useDSL()

Expand Down Expand Up @@ -334,7 +335,7 @@ const Workflow: FC<WorkflowProps> = memo(({
showImportDSLModal && (
<UpdateDSLModal
onCancel={() => setShowImportDSLModal(false)}
onBackup={handleExportDSL}
onBackup={exportCheck}
onImport={handlePaneContextmenuCancel}
/>
)
Expand Down

0 comments on commit d9dce32

Please sign in to comment.