Browse Source

fix: only show column list for unbalanced curly brackets

pull/2160/head
Wing-Kam Wong 3 years ago
parent
commit
bb78694040
  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