Fixed auto role rule emoji loading #1.1.0.rc5

This commit is contained in:
Sven Heidemann 2023-08-18 16:10:45 +02:00
parent 4ea1b5b94c
commit 223946ad76

View File

@ -107,7 +107,6 @@ export class AutoRolesRulesComponent extends ComponentWithTable implements OnIni
).subscribe(data => { ).subscribe(data => {
if (data.discord.guilds) { if (data.discord.guilds) {
this.guild = data.discord.guilds[0]; this.guild = data.discord.guilds[0];
}
this.emojis = this.guild.emojis this.emojis = this.guild.emojis
.map(x => { .map(x => {
return { label: x.name, value: x }; return { label: x.name, value: x };
@ -116,6 +115,7 @@ export class AutoRolesRulesComponent extends ComponentWithTable implements OnIni
.map(x => { .map(x => {
return { label: x.name, value: x }; return { label: x.name, value: x };
}); });
}
this.spinner.hideSpinner(); this.spinner.hideSpinner();
}); });
this.loadNextPage(); this.loadNextPage();