From aa31eda1d2760fefcad898c4f9df380eaee45fb5 Mon Sep 17 00:00:00 2001 From: Brian Cooper Date: Mon, 12 Nov 2018 16:21:13 -0500 Subject: [PATCH] feat(protocol-designer): disconnect well selection modal from hovered step state Well selection modal well contents are now only correlated with the currently selected step (the one being edited) Closes #2558 --- .../StepEditForm/WellSelectionInput/WellSelectionModal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol-designer/src/components/StepEditForm/WellSelectionInput/WellSelectionModal.js b/protocol-designer/src/components/StepEditForm/WellSelectionInput/WellSelectionModal.js index 96ca4cd9ffe..805b3f1d167 100644 --- a/protocol-designer/src/components/StepEditForm/WellSelectionInput/WellSelectionModal.js +++ b/protocol-designer/src/components/StepEditForm/WellSelectionInput/WellSelectionModal.js @@ -119,7 +119,7 @@ function mapStateToProps (state: BaseState, ownProps: OP): SP { const labware = labwareId && allLabware && allLabware[labwareId] const allWellContentsForSteps = wellContentsSelectors.allWellContentsForSteps(state) - const stepId = steplistSelectors.getActiveItem(state).id + const stepId = steplistSelectors.getSelectedStepId(state) // TODO: Ian 2018-07-31 replace with util function, "findIndexOrNull"? const orderedSteps = steplistSelectors.orderedSteps(state) const timelineIdx = orderedSteps.findIndex(id => id === stepId)