Browse Source

fix: use alias instead of _cn

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/1787/head
Wing-Kam Wong 3 years ago
parent
commit
28ce0243a6
  1. 2
      packages/nc-gui/components/project/spreadsheet/mixins/spreadsheet.js

2
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') {

Loading…
Cancel
Save