Skip to content

Commit dbaae29

Browse files
committed
fix video segmentation
1 parent 8258778 commit dbaae29

File tree

1 file changed

+3
-4
lines changed
  • src/components/VideoSegmentation

1 file changed

+3
-4
lines changed

src/components/VideoSegmentation/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const [emptyObj, emptyArr] = [{}, []]
2020
export default ({
2121
interface: iface,
2222
samples = emptyArr,
23-
taskOutput = emptyObj,
2423
containerProps = emptyObj,
2524
onSaveTaskOutputItem,
2625
}) => {
@@ -71,6 +70,8 @@ export default ({
7170
if (samples.length === 0) throw new Error("No sample data provided selected")
7271
if (!samples[0].videoUrl) throw new Error("Sample must have videoUrl")
7372

73+
const annotation = samples[0].annotation
74+
7475
return (
7576
<div
7677
style={{
@@ -83,9 +84,7 @@ export default ({
8384
taskDescription={iface.description}
8485
{...labelProps}
8586
enabledTools={enabledTools}
86-
keyframes={convertToRIAKeyframes(
87-
((taskOutput || [])[0] || {}).keyframes
88-
)}
87+
keyframes={convertToRIAKeyframes(annotation?.keyframes || {})}
8988
videoName={samples[0].customId || ""}
9089
videoTime={0}
9190
videoSrc={samples[0].videoUrl}

0 commit comments

Comments
 (0)