diff --git a/packages/nc-gui/components/project/spreadsheet/mixins/spreadsheet.js b/packages/nc-gui/components/project/spreadsheet/mixins/spreadsheet.js index 232e44db7c..5688a09f44 100644 --- a/packages/nc-gui/components/project/spreadsheet/mixins/spreadsheet.js +++ b/packages/nc-gui/components/project/spreadsheet/mixins/spreadsheet.js @@ -145,7 +145,7 @@ export default { concatenatedXWhere() { let where = '' if (this.searchField && this.searchQuery.trim()) { - const col = this.availableColumns.find(({ _cn }) => _cn === this.searchField) || this.availableColumns[0] + const col = this.availableColumns.find(({ alias }) => alias === this.searchField) || this.availableColumns[0] // bigint values are displayed in string format in UI // when searching bigint values, the operator should be 'eq' instead of 'like' if (['text', 'string'].includes(this.sqlUi.getAbstractType(col)) && col.dt !== 'bigint') {