Skip to content

Commit d1695ed

Browse files
committed
fix(compass-crud): do not use 0 as default for bulkDelete count COMPASS-8603
1 parent 74a5cab commit d1695ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/compass-crud/src/stores/crud-store.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ class CrudStoreImpl
426426
end: 0,
427427
page: 0,
428428
view: LIST,
429-
count: 0,
429+
count: null,
430430
insert: this.getInitialInsertState(),
431431
bulkUpdate: this.getInitialBulkUpdateState(),
432432
bulkDelete: this.getInitialBulkDeleteState(),
@@ -1913,7 +1913,7 @@ class CrudStoreImpl
19131913

19141914
const confirmation = await showConfirmation({
19151915
title: 'Are you absolutely sure?',
1916-
buttonText: `Delete ${affected || 0} document${
1916+
buttonText: `Delete ${affected ? `${affected} ` : ''} document${
19171917
affected !== 1 ? 's' : ''
19181918
}`,
19191919
description: `This action can not be undone. This will permanently delete ${

0 commit comments

Comments
 (0)