Skip to content

Commit 4ca8dbc

Browse files
committed
fix: second undefined regions on cancel
1 parent f6e2f7f commit 4ca8dbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Annotator/reducers/general-reducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ export default (state: MainLayoutState, action: Action) => {
548548
editingLabels: false,
549549
}))
550550
)
551-
} else {
551+
} else if (regions) {
552552
return setIn(
553553
state,
554554
[...pathToActiveImage, "regions"],

0 commit comments

Comments
 (0)