fix linting

This commit is contained in:
Anton Tranelis 2025-09-14 15:33:30 +02:00
parent 4a3e5e752f
commit 159c459c20
2 changed files with 10 additions and 2 deletions

View File

@ -92,7 +92,11 @@ export const ItemViewPopup = forwardRef((props: ItemViewPopupProps, ref: any) =>
api={props.item.layer?.api}
item={props.item}
editCallback={handleEdit}
deleteCallback={handleDelete}
deleteCallback={(e: React.MouseEvent<HTMLElement>) => {
handleDelete(e).catch(() => {
// Error handling is already in handleDelete
})
}}
setPositionCallback={() => {
map.closePopup()
setSelectPosition(props.item)

View File

@ -181,7 +181,11 @@ export function ProfileView({ attestationApi }: { attestationApi?: ItemsApi<any>
<HeaderView
api={item.layer?.api}
item={item}
deleteCallback={(e: React.MouseEvent<HTMLElement>) => handleDelete(e, item, setLoading, removeItem, map, navigate)}
deleteCallback={(e: React.MouseEvent<HTMLElement>) => {
handleDelete(e, item, setLoading, removeItem, map, navigate).catch(() => {
// Error handling is already in handleDelete
})
}}
editCallback={() => navigate('/edit-item/' + item.id)}
setPositionCallback={() => {
map.closePopup()