Fix deleting a second time

Previously we didn't clear the id list.
This meant if you deleted multiple sets
multiple times, it would break.
This commit is contained in:
Brandon Presley 2022-12-18 18:25:30 +13:00
parent faeb5ee1e0
commit f714941c88
1 changed files with 1 additions and 0 deletions

View File

@ -126,6 +126,7 @@ export default function SetList() {
}, [])
const remove = useCallback(async () => {
setIds([])
setShowMenu(false)
setShowRemove(false)
await setRepo.delete(ids.length > 0 ? ids : {})