Add logging to set item removal

This commit is contained in:
Brandon Presley 2022-11-03 21:58:49 +13:00
parent f7c895f608
commit b6616a551a
1 changed files with 1 additions and 0 deletions

View File

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