From e6e3b752d65fe2038a1b42ef9ddae8c21bf1cad2 Mon Sep 17 00:00:00 2001 From: Shpuld Shpuldson Date: Fri, 27 Nov 2020 15:51:58 +0200 Subject: [PATCH] review fixes --- src/components/emoji_input/emoji_input.js | 1 - src/modules/users.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/emoji_input/emoji_input.js b/src/components/emoji_input/emoji_input.js index 3deeb6c8..2068a598 100644 --- a/src/components/emoji_input/emoji_input.js +++ b/src/components/emoji_input/emoji_input.js @@ -186,7 +186,6 @@ const EmojiInput = { this.suggestions = take(matchedSuggestions, 5) .map(({ imageUrl, ...rest }) => ({ ...rest, - // eslint-disable-next-line camelcase img: imageUrl || '' })) }, diff --git a/src/modules/users.js b/src/modules/users.js index 4bdf3360..655db4c7 100644 --- a/src/modules/users.js +++ b/src/modules/users.js @@ -442,10 +442,10 @@ const users = { store.commit('setUserForNotification', notification) }) }, - searchUsers ({ rootState, commit }, { query, saveUsers = true }) { + searchUsers ({ rootState, commit }, { query }) { return rootState.api.backendInteractor.searchUsers({ query }) .then((users) => { - if (saveUsers) commit('addNewUsers', users) + commit('addNewUsers', users) return users }) },