Skip to content

Commit

Permalink
fix: discussion page renders before loading is finished (#4158)
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 authored Jan 5, 2025
1 parent 101ff98 commit e3943ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions framework/core/js/src/forum/components/DiscussionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ export default class DiscussionPage<CustomAttrs extends IDiscussionPageAttrs = I
}

view() {
if (this.loading || !this.discussion) {
return <LoadingIndicator />;
}

return (
<PageStructure
className="DiscussionPage"
Expand Down

0 comments on commit e3943ee

Please sign in to comment.