Fix image spinner

This commit is contained in:
Fedor Indutny
2025-09-02 08:03:48 -07:00
committed by GitHub
parent a0633efece
commit 10e1953ae3

View File

@@ -332,9 +332,12 @@ export function getSpinner({
i18n: LocalizerType;
tabIndex: number | undefined;
}): JSX.Element | undefined {
if (!attachment.pending) {
return undefined;
}
const spinnerValue =
(attachment.pending &&
!isIncremental(attachment) &&
(!isIncremental(attachment) &&
attachment.size &&
attachment.totalDownloaded) ||
undefined;