mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-13 12:13:42 +01:00
Don't save response when the file dialog is cancelled
This commit is contained in:
1 parent
85a9b2a908
commit
6f0d0ef275
1 file changed
+4
@@ -25,6 +25,10 @@ export function useSaveResponse(response: HttpResponse | null) {
|
||||
defaultPath: ext ? `${slug}.${ext}` : slug,
|
||||
title: "Save Response",
|
||||
});
|
||||
if (filepath == null) {
|
||||
return; // Cancelled
|
||||
}
|
||||
|
||||
await rpc("cmd_save_response", { responseId: response.id, filepath });
|
||||
showToast({
|
||||
message: (
|
||||
|
||||
Reference in new issue
Block a user