mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-12 23:36:00 +00:00
reinsert uuid to fix notifiations in backend (#342)
This commit is contained in:
parent
94ec2e5576
commit
1aaabebc99
@ -159,8 +159,11 @@ export function ItemFormPopup(props: Props) {
|
||||
popupForm.layer.api?.updateItem!({ ...formItem, id: existingUserItem.id }) ??
|
||||
Promise.resolve({} as Item)
|
||||
: () =>
|
||||
popupForm.layer.api?.createItem!({ ...formItem, name: itemName }) ??
|
||||
Promise.resolve({} as Item)
|
||||
popupForm.layer.api?.createItem!({
|
||||
...formItem,
|
||||
name: itemName,
|
||||
id: crypto.randomUUID(),
|
||||
}) ?? Promise.resolve({} as Item)
|
||||
|
||||
const result = await handleApiOperation(
|
||||
operation,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user