Skip to content

Commit 5f5e4f0

Browse files
committed
fix: video segmentation error because of undefined selectedImage
1 parent ae5c20e commit 5f5e4f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Annotator/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ export const Annotator = ({
120120
})
121121

122122
useEffect(() => {
123+
if (!selectedImage) return
123124
dispatchToReducer({
124125
type: "SELECT_IMAGE",
125126
image: state.images.find((img) => img.src === selectedImage),

0 commit comments

Comments
 (0)