mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-19 07:53:54 +01:00
Make prompt() to return null on cancel
This commit is contained in:
@@ -279,6 +279,7 @@ function SidebarButton({
|
||||
placeholder: 'New Name',
|
||||
defaultValue: environment.name,
|
||||
});
|
||||
if (name == null) return;
|
||||
updateEnvironment.mutate({ name });
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user