Commit 16a65017 authored by Ruben Bimberg's avatar Ruben Bimberg 💻
Browse files

Fix infinite waiting of tag cloud

parent a4b6cd94
Pipeline #69721 passed with stages
in 13 minutes
......@@ -181,6 +181,7 @@ export class TagCloudDataService {
this._currentOwner = roomOwner;
this._moderatorService.get(roomId).subscribe(moderators => {
this._currentModerators = moderators.map(moderator => moderator.accountId);
this.rebuildTagData();
});
this._lastFetchedComments = null;
this._subscriptionAdminData = this._tagCloudAdmin.getAdminData.subscribe(adminData => {
......@@ -355,7 +356,7 @@ export class TagCloudDataService {
}
private rebuildTagData() {
if (!this._lastFetchedComments) {
if (!this._lastFetchedComments || !this._currentModerators) {
return;
}
const currentMeta = this._isDemoActive ? this._lastMetaData : this._currentMetaData;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment