Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
mturley committed Sep 27, 2018
1 parent 7d3ec5a commit 573db0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Object {
"finishedWithErrorTransformationPlans": Array [],
"hideConfirmModalAction": [Function],
"hideDeleteConfirmationModalAction": [Function],
"hideEditPlanNameModalAction": [Function],
"hideMappingWizard": false,
"hidePlanWizard": false,
"isFetchingArchivedTransformationPlans": "true",
Expand Down Expand Up @@ -59,6 +60,7 @@ Object {
"setMigrationsFilterAction": [Function],
"showConfirmModalAction": [Function],
"showDeleteConfirmationModalAction": [Function],
"showEditPlanNameModalAction": [Function],
"showMappingWizardAction": [Function],
"showMappingWizardEditModeAction": [Function],
"showPlanWizardAction": [Function],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import reducer from './EditPlanNameReducer';

export const reducers = { editPlanName: reducer };

const mapStateToProps = ({ editPlanName, overview, form: { editPlanNameModal } }) => {
const mapStateToProps = ({ editPlanName, overview, form }) => {
const plans = [...overview.transformationPlans, ...overview.archivedTransformationPlans];
const editingPlan = findEditingPlan(plans, overview.editingPlanId);
return {
...editPlanName,
editPlanNameModal,
editPlanNameModal: form && form.editPlanNameModal,
initialValues: {
name: editingPlan ? editingPlan.name : '',
description: editingPlan ? editingPlan.description : ''
Expand Down

0 comments on commit 573db0d

Please sign in to comment.