From 6c2de3a57815b26a620767f60e38c403c4d63d14 Mon Sep 17 00:00:00 2001 From: movs Date: Fri, 30 Jul 2021 17:34:15 +0300 Subject: [PATCH] lookup by column fixed --- src/TableSortable/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TableSortable/index.js b/src/TableSortable/index.js index 2c2c9fd..ac8c214 100644 --- a/src/TableSortable/index.js +++ b/src/TableSortable/index.js @@ -154,10 +154,10 @@ class TableSortable { 'second argument must be array of keys' ) if (!cols.length) { - cols = columns + cols = Utils._keys(cols) } this._pagination.currentPage = 0 - this._dataset.lookUp(val, Utils._keys(cols)) + this._dataset.lookUp(val, cols) this.debounceUpdateTable() }