Merge pull request #266 from hocsinhgioitoan/main
fix(ClientUserSettingManager): data.guild_positions return undefined
This commit is contained in:
commit
3ec6bf45fb
@ -85,7 +85,7 @@
|
|||||||
"eslint": "^8.22.0",
|
"eslint": "^8.22.0",
|
||||||
"eslint-config-prettier": "^8.3.0",
|
"eslint-config-prettier": "^8.3.0",
|
||||||
"eslint-plugin-import": "^2.25.3",
|
"eslint-plugin-import": "^2.25.3",
|
||||||
"eslint-plugin-prettier": "^4.0.0",
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
"husky": "^7.0.4",
|
"husky": "^7.0.4",
|
||||||
"is-ci": "^3.0.1",
|
"is-ci": "^3.0.1",
|
||||||
"jest": "^28.1.3",
|
"jest": "^28.1.3",
|
||||||
|
@ -210,7 +210,7 @@ class ClientUserSettingManager extends BaseManager {
|
|||||||
mutual_guilds: data.friend_source_flags.all ? true : data.friend_source_flags.mutual_guilds,
|
mutual_guilds: data.friend_source_flags.all ? true : data.friend_source_flags.mutual_guilds,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if ('guild_folders' in data) {
|
if ('guild_folders' in data && 'guild_positions' in data) {
|
||||||
const data_ = data.guild_positions.map((guildId, i) => {
|
const data_ = data.guild_positions.map((guildId, i) => {
|
||||||
// Find folder
|
// Find folder
|
||||||
const folderIndex = data.guild_folders.findIndex(obj => obj.guild_ids.includes(guildId));
|
const folderIndex = data.guild_folders.findIndex(obj => obj.guild_ids.includes(guildId));
|
||||||
|
Loading…
Reference in New Issue
Block a user