Skip to content

Commit

Permalink
Merge pull request #1873 from automatisch/fix-use-dynamic-data
Browse files Browse the repository at this point in the history
fix(useDynamicData): send correct payload to API
  • Loading branch information
barinali committed May 10, 2024
2 parents d257f59 + c9281b4 commit 12905ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/web/src/hooks/useDynamicData.js
Expand Up @@ -87,10 +87,11 @@ function useDynamicData(stepId, schema) {
schema.source &&
computedVariables
) {
const { key, ...rest } = computedVariables;
const { key, parameters } = computedVariables;

getDynamicData({
dynamicDataKey: key,
parameters: rest,
parameters,
});
}
}, [getDynamicData, stepId, schema, computedVariables]);
Expand Down

0 comments on commit 12905ad

Please sign in to comment.