mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
🐛 Fix issue with deleting fixedCollection with multipleValues=false
This commit is contained in:
@@ -57,7 +57,7 @@ import ParameterInputFull from '@/components/ParameterInputFull.vue';
|
|||||||
import ParameterInputList from '@/components/ParameterInputList.vue';
|
import ParameterInputList from '@/components/ParameterInputList.vue';
|
||||||
import NodeCredentials from '@/components/NodeCredentials.vue';
|
import NodeCredentials from '@/components/NodeCredentials.vue';
|
||||||
import NodeWebhooks from '@/components/NodeWebhooks.vue';
|
import NodeWebhooks from '@/components/NodeWebhooks.vue';
|
||||||
import { get, set } from 'lodash';
|
import { get, set, unset } from 'lodash';
|
||||||
|
|
||||||
import { genericHelpers } from '@/components/mixins/genericHelpers';
|
import { genericHelpers } from '@/components/mixins/genericHelpers';
|
||||||
import { nodeHelpers } from '@/components/mixins/nodeHelpers';
|
import { nodeHelpers } from '@/components/mixins/nodeHelpers';
|
||||||
@@ -369,9 +369,12 @@ export default mixins(
|
|||||||
Vue.set(nodeParameters as object, path, data);
|
Vue.set(nodeParameters as object, path, data);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// For everything else
|
if (newValue === undefined) {
|
||||||
|
unset(nodeParameters as object, parameterPath);
|
||||||
|
} else {
|
||||||
set(nodeParameters as object, parameterPath, newValue);
|
set(nodeParameters as object, parameterPath, newValue);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Get the parameters with the now new defaults according to the
|
// Get the parameters with the now new defaults according to the
|
||||||
// from the user actually defined parameters
|
// from the user actually defined parameters
|
||||||
|
|||||||
Reference in New Issue
Block a user