mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -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);
|
||||
|
||||
if (
|
||||
sectionKeys.length === 0 ||
|
||||
(sectionKeys.length === 1 && this.values[sectionKeys[0]].length === 0)
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue