Fix wrong subtags listing in sidebar

This commit is contained in:
SychO9 2021-06-07 10:30:57 +01:00 committed by Daniël Klabbers
parent 09e031ae23
commit a0f4dcc62a

View File

@ -22,11 +22,11 @@ export default class TagsPage extends Page {
if (preloaded) {
this.tags = sortTags(preloaded.filter(tag => !tag.isChild()));
return;
}
}
this.loading = true;
app.tagList.load(['children', 'lastPostedDiscussion']).then(() => {
app.tagList.load(['children', 'lastPostedDiscussion', 'parent']).then(() => {
this.tags = sortTags(app.store.all('tags').filter(tag => !tag.isChild()));
this.loading = false;