🐛 Remove auto-adding fixed collection option (#2241)

* 🔥 Remove auto-adding fixed collection option

* 🔥 Remove file from version control
This commit is contained in:
Iván Ovejero 2021-09-23 10:47:13 +02:00 committed by GitHub
parent 4836a31714
commit e84ce79d9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,19 +79,6 @@ export default mixins(genericHelpers)
selectedOption: undefined,
};
},
mounted() {
const sectionKeys = Object.keys(this.values);
if (
this.parameter.required &&
(sectionKeys.length === 0 ||
(sectionKeys.length === 1 && this.values[sectionKeys[0]].length === 0))
) {
this.$nextTick(function () {
this.optionSelected(this.parameter.options[0].name);
});
}
},
computed: {
getPlaceholderText (): string {
return this.parameter.placeholder ? this.parameter.placeholder : 'Choose Option To Add';