From c71b11d21721ce568726c30503eafdce4e7057a6 Mon Sep 17 00:00:00 2001 From: thomasrosen Date: Wed, 21 Apr 2021 02:50:15 +0200 Subject: [PATCH] moved parsing the hashtags directly into the array This is to prevent eslint errors. --- src/HashtagChooser.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/HashtagChooser.js b/src/HashtagChooser.js index 09f831d..d682b12 100644 --- a/src/HashtagChooser.js +++ b/src/HashtagChooser.js @@ -11,15 +11,14 @@ function HashtagChooser({ onChange, getString }) { useEffect(() => { async function loadFrames() { - - hashtags = hashtags.split('\n') - .map(tag => tag.trim()) - .filter(tag => tag.length > 0) - Promise.all( [ '', - ...hashtags + ...( + hashtags.split('\n') + .map(tag => tag.trim()) + .filter(tag => tag.length > 0) + ) ] .map(async frame_filename => { let src = frame_filename