Browse Source

fix: only show column list for unbalanced curly brackets

feat/0523-export-schema
Wing-Kam Wong 3 years ago committed by Raju Udava
parent
commit
48bef5fdbe
  1. 2
      packages/nc-gui/components/project/spreadsheet/components/editColumn/FormulaOptions.vue

2
packages/nc-gui/components/project/spreadsheet/components/editColumn/FormulaOptions.vue

@ -576,7 +576,7 @@ export default {
const parts = query.split(/\W+/)
this.wordToComplete = parts.pop()
this.suggestion = this.acTree.complete(this.wordToComplete)?.sort((x, y) => this.sortOrder[x.type] - this.sortOrder[y.type])
if (this.isCurlyBracketBalanced()) {
if (!this.isCurlyBracketBalanced()) {
this.suggestion = this.suggestion.filter(v => v.type === 'column')
}
this.autocomplete = !!this.suggestion.length

Loading…
Cancel
Save