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