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