From dab82965a4d8f93b75a53c293ce18290df132fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Sun, 21 Mar 2021 12:39:06 +0100 Subject: [PATCH] :zap: Render empty array in variable selector (#1537) --- packages/editor-ui/src/components/VariableSelector.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/editor-ui/src/components/VariableSelector.vue b/packages/editor-ui/src/components/VariableSelector.vue index 2f782e0a7d..c4d031859a 100644 --- a/packages/editor-ui/src/components/VariableSelector.vue +++ b/packages/editor-ui/src/components/VariableSelector.vue @@ -114,6 +114,9 @@ export default mixins( // Has still options left so return inputData.options = this.sortOptions(newOptions); return inputData; + } else if (Array.isArray(newOptions) && newOptions.length === 0) { + delete inputData.options; + return inputData; } // Has no options left so remove return null;