mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 13:27:40 +00:00
fix(webui): use fileData?.id as reset dependency to prevent loading race conditions
This commit is contained in:
@@ -260,7 +260,7 @@ function FileViewPage() {
|
||||
setCurrentTime(0)
|
||||
setSelectedCommentId(null)
|
||||
setAnnotations([])
|
||||
}, [activeFileId])
|
||||
}, [fileData?.id])
|
||||
|
||||
if (isLoading && !fileData) {
|
||||
return <FileDetailSkeleton />
|
||||
|
||||
Reference in New Issue
Block a user