From bb78694040787c92519f7a5d9a555148c643b7b5 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Thu, 26 May 2022 12:47:21 +0800 Subject: [PATCH] fix: only show column list for unbalanced curly brackets --- .../spreadsheet/components/editColumn/FormulaOptions.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/project/spreadsheet/components/editColumn/FormulaOptions.vue b/packages/nc-gui/components/project/spreadsheet/components/editColumn/FormulaOptions.vue index e0745fc036..3e311f47c9 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/editColumn/FormulaOptions.vue +++ b/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