We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74a5cab commit d1695edCopy full SHA for d1695ed
packages/compass-crud/src/stores/crud-store.ts
@@ -426,7 +426,7 @@ class CrudStoreImpl
426
end: 0,
427
page: 0,
428
view: LIST,
429
- count: 0,
+ count: null,
430
insert: this.getInitialInsertState(),
431
bulkUpdate: this.getInitialBulkUpdateState(),
432
bulkDelete: this.getInitialBulkDeleteState(),
@@ -1913,7 +1913,7 @@ class CrudStoreImpl
1913
1914
const confirmation = await showConfirmation({
1915
title: 'Are you absolutely sure?',
1916
- buttonText: `Delete ${affected || 0} document${
+ buttonText: `Delete ${affected ? `${affected} ` : ''} document${
1917
affected !== 1 ? 's' : ''
1918
}`,
1919
description: `This action can not be undone. This will permanently delete ${
0 commit comments