Skip to content

Commit

Permalink
Added so the document loads when it is not selected
Browse files Browse the repository at this point in the history
  • Loading branch information
jko218 committed Jun 26, 2024
1 parent e04ff0f commit cc7fd2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/documents/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const Documents: React.FC = () => {
</p>
</div>
</div>
{loading &&
{(loading || !document) && currentDocumentID && !documentLoadError &&
<span className={loadingstyles.loader}>
<Spinner />
</span>}
Expand Down Expand Up @@ -155,6 +155,7 @@ const Documents: React.FC = () => {

</div>
}

</div>
)
}
Expand Down

0 comments on commit cc7fd2c

Please sign in to comment.