From 3b4ea89efe20274c8e0f2fab87e3233506a63696 Mon Sep 17 00:00:00 2001 From: Le Roux Bodenstein Date: Mon, 9 Dec 2024 16:36:05 +0000 Subject: [PATCH] don't fallback to zero if the count cannot be determined --- packages/compass-crud/src/stores/crud-store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compass-crud/src/stores/crud-store.ts b/packages/compass-crud/src/stores/crud-store.ts index 14ef0e39b79..3475a8392ad 100644 --- a/packages/compass-crud/src/stores/crud-store.ts +++ b/packages/compass-crud/src/stores/crud-store.ts @@ -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', });