From: Eugen Rochko Date: Tue, 22 Mar 2022 17:20:25 +0000 (+0100) Subject: [Glitch] Fix crash when search fails in web UI X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=59dcf32efd2b24a97586a4328b8c471845b8c17d;p=mastodon.git [Glitch] Fix crash when search fails in web UI Port 8751c3c4954799aec24cecc1cae68df27d19ceee to glitch-soc Signed-off-by: Claire --- diff --git a/app/javascript/flavours/glitch/features/explore/results.js b/app/javascript/flavours/glitch/features/explore/results.js index 15a850f84..8eac63c2c 100644 --- a/app/javascript/flavours/glitch/features/explore/results.js +++ b/app/javascript/flavours/glitch/features/explore/results.js @@ -24,15 +24,15 @@ const appendLoadMore = (id, list, onLoadMore) => { } }; -const renderAccounts = (results, onLoadMore) => appendLoadMore('accounts', results.get('accounts').map(item => ( +const renderAccounts = (results, onLoadMore) => appendLoadMore('accounts', results.get('accounts', ImmutableList()).map(item => ( )), onLoadMore); -const renderHashtags = (results, onLoadMore) => appendLoadMore('hashtags', results.get('hashtags').map(item => ( +const renderHashtags = (results, onLoadMore) => appendLoadMore('hashtags', results.get('hashtags', ImmutableList()).map(item => ( )), onLoadMore); -const renderStatuses = (results, onLoadMore) => appendLoadMore('statuses', results.get('statuses').map(item => ( +const renderStatuses = (results, onLoadMore) => appendLoadMore('statuses', results.get('statuses', ImmutableList()).map(item => ( )), onLoadMore);