Fix react-pdf race condition
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -110,6 +110,7 @@ export function PDFPreview({ src, name }: { src: string; name?: string }) {
|
||||
>
|
||||
<Document
|
||||
file={src}
|
||||
key={src + "document"}
|
||||
onLoadSuccess={onDocumentLoadSuccess}
|
||||
className="flex flex-col gap-4 py-10"
|
||||
ref={documentRef}
|
||||
|
||||
Reference in New Issue
Block a user