From c6c5877e833447446a81408b0f66c7c4363a2a80 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 20 May 2022 11:55:00 +0800 Subject: [PATCH] fix: validate compound case --- .../spreadsheet/components/editColumn/FormulaOptions.vue | 2 ++ 1 file changed, 2 insertions(+) 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 42c27af40b..1c1c5ad91c 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/editColumn/FormulaOptions.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/editColumn/FormulaOptions.vue @@ -329,6 +329,8 @@ export default { } this.validateAgainstMeta(pt.left, arr) this.validateAgainstMeta(pt.right, arr) + } else if (pt.type === jsep.COMPOUND) { + pt.body.map(v => this.validateAgainstMeta(v, arr)) } return arr },