From 45d84fa32810502c2e4212fa25b7151263a791c8 Mon Sep 17 00:00:00 2001 From: hocsinhgioitoan <89916615+hocsinhgioitoan@users.noreply.github.com> Date: Sat, 20 Aug 2022 17:59:29 +0700 Subject: [PATCH] fix: #265 --- package.json | 2 +- src/managers/ClientUserSettingManager.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4139cb3..9887d4f 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "eslint": "^8.22.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-import": "^2.25.3", - "eslint-plugin-prettier": "^4.0.0", + "eslint-plugin-prettier": "^4.2.1", "husky": "^7.0.4", "is-ci": "^3.0.1", "jest": "^28.1.3", diff --git a/src/managers/ClientUserSettingManager.js b/src/managers/ClientUserSettingManager.js index cef420e..d6391b6 100644 --- a/src/managers/ClientUserSettingManager.js +++ b/src/managers/ClientUserSettingManager.js @@ -210,7 +210,7 @@ class ClientUserSettingManager extends BaseManager { 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) => { // Find folder const folderIndex = data.guild_folders.findIndex(obj => obj.guild_ids.includes(guildId));