Skip to content

Commit

Permalink
fix: second undefined regions on cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed May 24, 2020
1 parent f6e2f7f commit 4ca8dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Annotator/reducers/general-reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ export default (state: MainLayoutState, action: Action) => {
editingLabels: false,
}))
)
} else {
} else if (regions) {
return setIn(
state,
[...pathToActiveImage, "regions"],
Expand Down

0 comments on commit 4ca8dbc

Please sign in to comment.