Skip to content

Commit

Permalink
fix(designer): Adding dispatch call in clear dynamic inputs (#4712)
Browse files Browse the repository at this point in the history
* fix(designer): Fixing clearing of dynamic inputs of parameter value changes

* fix(designer): Adding dispatch call in store update to clear dynamic inputs

---------

Co-authored-by: Priti Sambandam <[email protected]>
  • Loading branch information
preetriti1 and Priti Sambandam authored Apr 25, 2024
1 parent 00600b6 commit 88da7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/designer/src/lib/core/utils/parameters/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1991,7 +1991,7 @@ async function loadDynamicContentForInputsInNode(
for (const inputKey of Object.keys(inputDependencies)) {
const info = inputDependencies[inputKey];
if (info.dependencyType === 'ApiSchema') {
clearDynamicIO({ nodeId, inputs: true, outputs: false });
dispatch(clearDynamicIO({ nodeId, inputs: true, outputs: false }));
if (isDynamicDataReadyToLoad(info)) {
try {
const inputSchema = await tryGetInputDynamicSchema(
Expand Down

0 comments on commit 88da7bc

Please sign in to comment.