mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-24 10:21:37 +01:00
Hacky Yaak import complete!
This commit is contained in:
@@ -14,12 +14,12 @@ export function useExportData() {
|
||||
|
||||
return useMutation({
|
||||
mutationFn: async () => {
|
||||
const rootDir = await save(saveArgs);
|
||||
if (rootDir == null) {
|
||||
const exportPath = await save(saveArgs);
|
||||
if (exportPath == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
await invoke('export_data', { workspaceId, rootDir });
|
||||
await invoke('export_data', { workspaceId, exportPath });
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user