Skip to content

Commit

Permalink
fix: select all only selects filtered list
Browse files Browse the repository at this point in the history
Signed-off-by: Cleopatra Enjeck M <patrathewhiz@gmail.com>
  • Loading branch information
enjeck committed Jan 19, 2024
1 parent 9d26976 commit 41661f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/components/ncTable/sections/CustomTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
Expand Down

0 comments on commit 41661f9

Please sign in to comment.