mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
⚡ Limit auto-expansion to required params only
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user