Skip to content

Commit

Permalink
fix: open modal for empty dims (#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkrulltott committed Feb 6, 2020
1 parent c131970 commit e07d786
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const mapDispatchToProps = dispatch => ({
axisItemHandler: (dimensionId, axisId, numberOfDimensionItems) => {
dispatch(acAddUiLayoutDimensions({ [dimensionId]: { axisId } }))

if (numberOfDimensionItems > 0) {
if (numberOfDimensionItems === 0) {
dispatch(acSetUiActiveModalDialog(dimensionId))
}
},
Expand Down

0 comments on commit e07d786

Please sign in to comment.