From 41661f9c21c6b54773f24a18a276b06e8bf631af Mon Sep 17 00:00:00 2001 From: Cleopatra Enjeck M Date: Fri, 19 Jan 2024 04:04:27 +0100 Subject: [PATCH] fix: select all only selects filtered list Signed-off-by: Cleopatra Enjeck M --- src/shared/components/ncTable/sections/CustomTable.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/components/ncTable/sections/CustomTable.vue b/src/shared/components/ncTable/sections/CustomTable.vue index 70cb28d8a..c64f4ad55 100644 --- a/src/shared/components/ncTable/sections/CustomTable.vue +++ b/src/shared/components/ncTable/sections/CustomTable.vue @@ -245,7 +245,7 @@ export default { selectAllRows(value) { this.selectedRows = [] if (value) { - this.rows.forEach(item => { this.selectedRows.push(item.id) }) + this.getSearchedAndFilteredRows.forEach(item => { this.selectedRows.push(item.id) }) } this.$emit('update-selected-rows', this.selectedRows) },