Skip to content

Commit

Permalink
fix: changing the timing loading state
Browse files Browse the repository at this point in the history
  • Loading branch information
nini22P committed Jan 5, 2025
1 parent f9ae2e8 commit 8ceebaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/player/usePlayerCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ const usePlayerCore = (player: HTMLVideoElement | null) => {
player.src = ''
}
if (playQueue !== null && playQueue.length !== 0 && currentFile) {
updateIsLoading(true)
try {
getFileData(account, pathConvert(currentFile.filePath)).then((res) => {
setUrl(res['@microsoft.graph.downloadUrl'])
updateIsLoading(true)
})
} catch (error) {
console.error(error)
Expand Down

0 comments on commit 8ceebaf

Please sign in to comment.