Skip to content

Commit

Permalink
unify signatures of createComponent (from action/components and actio…
Browse files Browse the repository at this point in the history
…n/component)
  • Loading branch information
BulotF committed Apr 18, 2023
1 parent 837664e commit d3cfa75
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/actions/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ export const MOVE_COMPONENT = 'MOVE_COMPONENT';
export const createComponent =
(
componentState,
codesListsStore,
calculatedVariablesStore,
externalVariablesStore,
collectedVariablesStore,
codesListsStore,
) =>
dispatch => {
const activeComponentsStore = {
Expand Down
2 changes: 1 addition & 1 deletion src/layout/component-new/components/component-new.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ function validateAndSubmit(
actions
.createComponent(
componentState,
updatedCodesListsStore,
updatedCalculatedVariablesStore,
updatedExternalVariablesStore,
updatedCollectedlVariablesStore,
updatedCodesListsStore,
)
.then(actions.updateParentChildren)
.then(actions.orderComponents)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const QuestionnaireComponent = props => {
componentFiltersInitial.map(filter => {
return (
<div
key={`${filter}-if`}
key={`${filter.id}-if`}
className="questionnaire-element-filter"
>
<button
Expand All @@ -173,7 +173,7 @@ const QuestionnaireComponent = props => {
componentFiltersFinal.map(filter => {
return (
<div
key={`${filter}-endif`}
key={`${filter.id}-endif`}
className="questionnaire-element-filter"
>
<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ const QuestionnaireList = props => {
};
createComponent(
componentState,
codesListsStore,
calculatedVariablesStore,
externalVariablesStore,
collectedVariablesStore,
codesListsStore,
)
.then(updateParentChildren)
.then(orderComponents)
Expand Down

0 comments on commit d3cfa75

Please sign in to comment.