fix(html): update video when clicking previous/next (#35309)

This commit is contained in:
Simon Knott 2025-03-21 15:30:38 +01:00 committed by GitHub
parent 53ed2f601b
commit 071e49687c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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>