mirror of
https://github.com/flarum/framework.git
synced 2025-06-07 00:44:34 +08:00
Don't show placeholder when loading discussions
This commit is contained in:
@ -54,7 +54,7 @@ export default class DiscussionList extends Component {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.discussions.length == 0) {
|
if (this.discussions.length === 0 && !this.loading) {
|
||||||
const text = 'Looks like there are no discussions here. Why don\'t you create a new one?';
|
const text = 'Looks like there are no discussions here. Why don\'t you create a new one?';
|
||||||
return (
|
return (
|
||||||
<div className="DiscussionList">
|
<div className="DiscussionList">
|
||||||
|
Reference in New Issue
Block a user