From 3e9e32b276a07e5801735284bebb71e6c5954132 Mon Sep 17 00:00:00 2001 From: Developer <> Date: Wed, 10 Feb 2021 12:41:41 -0500 Subject: [PATCH] Updated lists to make account search work MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Updated: - lists to make account search work for adding new members --- app/javascript/gabsocial/actions/lists.js | 2 -- app/javascript/gabsocial/features/list_edit.js | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/javascript/gabsocial/actions/lists.js b/app/javascript/gabsocial/actions/lists.js index 858a137f..f943c5cf 100644 --- a/app/javascript/gabsocial/actions/lists.js +++ b/app/javascript/gabsocial/actions/lists.js @@ -289,8 +289,6 @@ export const fetchListAccountsFail = (id, error) => ({ export const fetchListSuggestions = (q) => (dispatch, getState) => { if (!me) return - return false - const params = { q, resolve: false, diff --git a/app/javascript/gabsocial/features/list_edit.js b/app/javascript/gabsocial/features/list_edit.js index ce983a10..6f5e8b4e 100644 --- a/app/javascript/gabsocial/features/list_edit.js +++ b/app/javascript/gabsocial/features/list_edit.js @@ -74,9 +74,7 @@ class ListEdit extends ImmutablePureComponent { } handleSearchSuggestionsKeyUp = (e) => { - if (e.keyCode === 13) { - this.props.onSubmitSearchSuggestions(this.props.searchSuggestionsValue) - } + this.props.onSubmitSearchSuggestions(this.props.searchSuggestionsValue) } handleSearchSuggestionsSubmit = () => {