Skip to content

Commit

Permalink
fix(crud): don't fallback to zero if the count cannot be determined (#…
Browse files Browse the repository at this point in the history
…6557)

don't fallback to zero if the count cannot be determined
  • Loading branch information
lerouxb authored Dec 9, 2024
1 parent b5eb8c0 commit 89adbce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compass-crud/src/stores/crud-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1896,7 +1896,7 @@ class CrudStoreImpl
affected !== 1 ? 's' : ''
}`,
description: `This action can not be undone. This will permanently delete ${
affected || 0
affected ?? 'an unknown number of'
} document${affected !== 1 ? 's' : ''}.`,
variant: 'danger',
});
Expand Down

0 comments on commit 89adbce

Please sign in to comment.