From 3045c0de1e06974c5f910cbc9193e116819d9119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Thu, 9 Sep 2021 11:02:29 +0200 Subject: [PATCH] :zap: Add first fixed collection option automatically --- .../editor-ui/src/components/FixedCollectionParameter.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/editor-ui/src/components/FixedCollectionParameter.vue b/packages/editor-ui/src/components/FixedCollectionParameter.vue index d29539e86f..d62b8fafb6 100644 --- a/packages/editor-ui/src/components/FixedCollectionParameter.vue +++ b/packages/editor-ui/src/components/FixedCollectionParameter.vue @@ -79,6 +79,11 @@ export default mixins(genericHelpers) selectedOption: undefined, }; }, + mounted() { + this.$nextTick(function () { + this.optionSelected(this.parameter.options[0].name); + }); + }, computed: { getPlaceholderText (): string { return this.parameter.placeholder ? this.parameter.placeholder : 'Choose Option To Add';