mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
⚡ Limit auto-expansion to required params only
This commit is contained in:
parent
19afcdbcfd
commit
abb80b4888
|
@ -83,8 +83,9 @@ export default mixins(genericHelpers)
|
||||||
const sectionKeys = Object.keys(this.values);
|
const sectionKeys = Object.keys(this.values);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
sectionKeys.length === 0 ||
|
this.parameter.required &&
|
||||||
(sectionKeys.length === 1 && this.values[sectionKeys[0]].length === 0)
|
(sectionKeys.length === 0 ||
|
||||||
|
(sectionKeys.length === 1 && this.values[sectionKeys[0]].length === 0))
|
||||||
) {
|
) {
|
||||||
this.$nextTick(function () {
|
this.$nextTick(function () {
|
||||||
this.optionSelected(this.parameter.options[0].name);
|
this.optionSelected(this.parameter.options[0].name);
|
||||||
|
|
Loading…
Reference in a new issue