mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-03-01 12:44:17 +00:00
fix linting
This commit is contained in:
parent
4a3e5e752f
commit
159c459c20
@ -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)
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user