mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
refactor: Fix type issues for parameter input components (#9449)
This commit is contained in:
@@ -102,7 +102,7 @@ export default defineComponent({
|
||||
},
|
||||
props: {
|
||||
nodeValues: {
|
||||
type: Object as PropType<Record<string, INodeParameters[]>>,
|
||||
type: Object as PropType<INodeParameters>,
|
||||
required: true,
|
||||
},
|
||||
parameter: {
|
||||
@@ -159,7 +159,7 @@ export default defineComponent({
|
||||
methods: {
|
||||
addItem() {
|
||||
const name = this.getPath();
|
||||
const currentValue = get(this.nodeValues, name, [] as INodeParameters[]);
|
||||
const currentValue = get(this.nodeValues, name, []) as INodeParameters[];
|
||||
|
||||
currentValue.push(deepCopy(this.parameter.default as INodeParameters));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user