Add logging to set item removal
This commit is contained in:
parent
f7c895f608
commit
b6616a551a
|
@ -24,6 +24,7 @@ export default function SetItem({
|
|||
const navigation = useNavigation<NavigationProp<HomePageParams>>()
|
||||
|
||||
const remove = useCallback(async () => {
|
||||
console.log(`${SetItem.name}.remove:`, {id: item.id})
|
||||
if (typeof item.id === 'number') await setRepo.delete(item.id)
|
||||
setShowMenu(false)
|
||||
onRemove()
|
||||
|
|
Loading…
Reference in New Issue
Block a user