mirror of
https://github.com/flarum/core.git
synced 2025-08-02 22:47:33 +02:00
fix: discussion page renders before loading is finished (#4158)
This commit is contained in:
@@ -84,6 +84,10 @@ export default class DiscussionPage<CustomAttrs extends IDiscussionPageAttrs = I
|
||||
}
|
||||
|
||||
view() {
|
||||
if (this.loading || !this.discussion) {
|
||||
return <LoadingIndicator />;
|
||||
}
|
||||
|
||||
return (
|
||||
<PageStructure
|
||||
className="DiscussionPage"
|
||||
|
Reference in New Issue
Block a user