Skip to content

Commit

Permalink
[frontend] Small fix on adding a new parent using the tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimfacion authored Oct 23, 2024
1 parent 8768b3e commit 8981a4e
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ const InjectForm: React.FC<Props> = ({ values, form, injects }) => {
}
return element;
});

setParents(newParents);

const baseInjectDependency: InjectDependency = {
Expand All @@ -215,15 +214,12 @@ const InjectForm: React.FC<Props> = ({ values, form, injects }) => {
mode: 'and',
},
};
setParentConditions(getConditionContentParent([baseInjectDependency]));

form.mutators.setValue(
'inject_depends_on',
[baseInjectDependency],
);

if (newInject!.inject_depends_on !== null) {
setParentConditions(getConditionContentParent(injectDependencyFromDependency(newParents)));
}
};

/**
Expand Down

0 comments on commit 8981a4e

Please sign in to comment.