]> cat aescling's git repositories - mastodon.git/commitdiff
Fix crash when failing to load emoji picker (#14525)
authorThibG <thib@sitedethib.com>
Sat, 8 Aug 2020 15:57:56 +0000 (17:57 +0200)
committerGitHub <noreply@github.com>
Sat, 8 Aug 2020 15:57:56 +0000 (17:57 +0200)
Fixes #14523

app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js

index 360a7af6ab9fcaa5d7d4debfd604d72b192c7f50..e8a36a92314f0667d205b6973a80986ddebd8fba 100644 (file)
@@ -315,7 +315,7 @@ class EmojiPickerDropdown extends React.PureComponent {
 
         this.setState({ loading: false });
       }).catch(() => {
-        this.setState({ loading: false });
+        this.setState({ loading: false, active: false });
       });
     }