mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 23:57:42 +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 (
|
||||
<ViewerComponent
|
||||
key={file.id}
|
||||
ref={mediaControllerRef}
|
||||
file={file}
|
||||
onPlay={onPlay}
|
||||
|
||||
Reference in New Issue
Block a user