]> cat aescling's git repositories - mastodon.git/commitdiff
Fix typo
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 1 Mar 2017 00:57:48 +0000 (01:57 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 1 Mar 2017 00:57:48 +0000 (01:57 +0100)
app/assets/javascripts/components/actions/compose.jsx

index 54ec7b9150385bff22ad751a3725c337f50e1438..b7f225170c99fe51e4546b6d6620068fbb904dcc 100644 (file)
@@ -85,11 +85,11 @@ export function submitCompose() {
       dispatch(updateTimeline('home', { ...response.data }));
 
       if (response.data.in_reply_to_id === null && response.data.visibility === 'public') {
-        if (getState.getIn(['timelines', 'community', 'loaded'])) {
+        if (getState().getIn(['timelines', 'community', 'loaded'])) {
           dispatch(updateTimeline('community', { ...response.data }));
         }
 
-        if (getState.getIn(['timelines', 'public', 'loaded'])) {
+        if (getState().getIn(['timelines', 'public', 'loaded'])) {
           dispatch(updateTimeline('public', { ...response.data }));
         }
       }