fix(html): update video when clicking previous/next (#35309)
This commit is contained in:
parent
53ed2f601b
commit
071e49687c
|
@ -127,7 +127,7 @@ export const TestResultView: React.FC<{
|
|||
|
||||
{!!videos.length && <Anchor id='attachment-video'><AutoChip header='Videos' revealOnAnchorId='attachment-video'>
|
||||
{videos.map((a, i) => <div key={`video-${i}`}>
|
||||
<video controls>
|
||||
<video key={a.path} controls> {/* key is required to ensure video is updated when the path changes */}
|
||||
<source src={a.path} type={a.contentType}/>
|
||||
</video>
|
||||
<AttachmentLink attachment={a} result={result}></AttachmentLink>
|
||||
|
|
Loading…
Reference in New Issue