mirror of
https://github.com/flarum/core.git
synced 2025-08-03 15:07:53 +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() {
|
view() {
|
||||||
|
if (this.loading || !this.discussion) {
|
||||||
|
return <LoadingIndicator />;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PageStructure
|
<PageStructure
|
||||||
className="DiscussionPage"
|
className="DiscussionPage"
|
||||||
|
Reference in New Issue
Block a user