fixing bug on profile-item-create caused by PR 185

This commit is contained in:
Anton Tranelis 2025-05-23 09:41:39 +02:00
parent 29027c52f8
commit 70714d62ec

View File

@ -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