mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-06 16:24:17 +00:00
fix(webui): remount file viewer when file ID changes to reset state
This commit is contained in:
@@ -22,6 +22,7 @@ export function FileViewer({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ViewerComponent
|
<ViewerComponent
|
||||||
|
key={file.id}
|
||||||
ref={mediaControllerRef}
|
ref={mediaControllerRef}
|
||||||
file={file}
|
file={file}
|
||||||
onPlay={onPlay}
|
onPlay={onPlay}
|
||||||
|
|||||||
Reference in New Issue
Block a user