mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-26 19:31:25 +01:00
Make prompt() to return null on cancel
This commit is contained in:
@@ -66,6 +66,7 @@ export const WorkspaceActionsDropdown = memo(function WorkspaceActionsDropdown({
|
||||
placeholder: 'New Name',
|
||||
defaultValue: activeWorkspace?.name,
|
||||
});
|
||||
if (name == null) return;
|
||||
updateWorkspace.mutate({ name });
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user