diff --git a/src/files-ui/components/file-mosaic/hooks/useProgress.ts b/src/files-ui/components/file-mosaic/hooks/useProgress.ts index ae854a89d75d0e89996f6a9f5452c03f7b00d077..0ee6ac2e23cefc286b6a74f640aae42dcd1aa936 100644 --- a/src/files-ui/components/file-mosaic/hooks/useProgress.ts +++ b/src/files-ui/components/file-mosaic/hooks/useProgress.ts @@ -15,7 +15,10 @@ const useProgress = ( const [localProgress, setLocalProgress] = React.useState<number | undefined>(undefined); if (progress !== undefined) { - setLocalProgress(progress); + if (localProgress !== progress) { + setLocalProgress(progress); + } + } else { if (xhr !== undefined && xhr !== null && xhr.upload.onprogress === null) { // xhr was given but it was not initialized the `onprogress` event