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)
map.closePopup()
} else {
const item = items.find(
(i) => i.user_created?.id === user?.id && i.layer?.id === popupForm.layer.id,
)
const item = items.find((i) => i.user_created?.id === user?.id && i.layer === popupForm.layer)
const uuid = crypto.randomUUID()
let success = false