Skip to content

Commit

Permalink
Avoid undefined document bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jko218 committed Jun 26, 2024
1 parent aea6a94 commit 228d181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/documents/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const Documents: React.FC = () => {
<span className={loadingstyles.loader}>
<Spinner />
</span>}
{loading == false && currentDocumentID && !documentLoadError &&
{loading == false && currentDocumentID && !documentLoadError && document &&
<div className={styles.documentViewer}>
<iframe src={`data:application/pdf;base64,${document}`}/>
</div>}
Expand Down

0 comments on commit 228d181

Please sign in to comment.