fix: resolve token refresh race condition and pdf viewer empty token rendering
All checks were successful
Automated Container Build / build-and-push (push) Successful in 24s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 24s
This commit is contained in:
parent
f3ea79ab1f
commit
e88243f097
2 changed files with 43 additions and 21 deletions
|
|
@ -152,7 +152,11 @@ export default function FilePreview({ file, onClose, downloadToken }: FilePrevie
|
|||
)}
|
||||
|
||||
{previewType === 'pdf' && (
|
||||
<DynamicPdfViewer url={downloadUrl} />
|
||||
!downloadToken ? (
|
||||
<div className="flex items-center justify-center p-8"><Loader2 className="w-8 h-8 animate-spin text-accent" /></div>
|
||||
) : (
|
||||
<DynamicPdfViewer url={downloadUrl} />
|
||||
)
|
||||
)}
|
||||
|
||||
{(previewType === 'text' || previewType === 'code') && (
|
||||
|
|
|
|||
Reference in a new issue