mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-30 22:22:02 +02:00
Make prompt() to return null on cancel
This commit is contained in:
@@ -767,6 +767,7 @@ function SidebarItem({
|
||||
placeholder: 'New Name',
|
||||
defaultValue: itemName,
|
||||
});
|
||||
if (name == null) return;
|
||||
updateAnyFolder.mutate({ id: itemId, update: (f) => ({ ...f, name }) });
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user