mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
⚡ Prevent excess option addition
This commit is contained in:
parent
3045c0de1e
commit
19afcdbcfd
|
@ -5,7 +5,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-for="property in getProperties" :key="property.name" class="fixed-collection-parameter-property">
|
<div v-for="property in getProperties" :key="property.name" class="fixed-collection-parameter-property">
|
||||||
<div v-if="property.displayName === ''"></div>
|
<div v-if="property.displayName === '' || parameter.options.length === 1"></div>
|
||||||
<div v-else class="parameter-name" :title="property.displayName">{{property.displayName}}:</div>
|
<div v-else class="parameter-name" :title="property.displayName">{{property.displayName}}:</div>
|
||||||
|
|
||||||
<div v-if="multipleValues === true">
|
<div v-if="multipleValues === true">
|
||||||
|
@ -80,9 +80,16 @@ export default mixins(genericHelpers)
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$nextTick(function () {
|
const sectionKeys = Object.keys(this.values);
|
||||||
this.optionSelected(this.parameter.options[0].name);
|
|
||||||
});
|
if (
|
||||||
|
sectionKeys.length === 0 ||
|
||||||
|
(sectionKeys.length === 1 && this.values[sectionKeys[0]].length === 0)
|
||||||
|
) {
|
||||||
|
this.$nextTick(function () {
|
||||||
|
this.optionSelected(this.parameter.options[0].name);
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
getPlaceholderText (): string {
|
getPlaceholderText (): string {
|
||||||
|
|
Loading…
Reference in a new issue