mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-04-06 01:25:33 +00:00
fixing bug on profile-item-create caused by PR 185
This commit is contained in:
parent
29027c52f8
commit
70714d62ec
@ -101,9 +101,7 @@ export function ItemFormPopup(props: Props) {
|
|||||||
setSpinner(false)
|
setSpinner(false)
|
||||||
map.closePopup()
|
map.closePopup()
|
||||||
} else {
|
} else {
|
||||||
const item = items.find(
|
const item = items.find((i) => i.user_created?.id === user?.id && i.layer === popupForm.layer)
|
||||||
(i) => i.user_created?.id === user?.id && i.layer?.id === popupForm.layer.id,
|
|
||||||
)
|
|
||||||
|
|
||||||
const uuid = crypto.randomUUID()
|
const uuid = crypto.randomUUID()
|
||||||
let success = false
|
let success = false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user