mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 16:23:16 +08:00
Don't show placeholder when loading discussions
This commit is contained in:
parent
e14fe8bc03
commit
3ec6e94c62
|
@ -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?';
|
||||
return (
|
||||
<div className="DiscussionList">
|
||||
|
|
Loading…
Reference in New Issue
Block a user