about summary refs log tree commit diff
path: root/app/javascript/mastodon/actions/timelines.js
diff options
context:
space:
mode:
authorSorin Davidoi <sorin.davidoi@gmail.com>2017-07-19 19:38:50 +0200
committerEugen Rochko <eugen@zeonfederated.com>2017-07-19 19:38:50 +0200
commit015269914e0908799a4a958fe8af39cb81984986 (patch)
tree6d44af5671627d63eebb8f9a07e55d0f72b23cbb /app/javascript/mastodon/actions/timelines.js
parentbbdcfd6baf8da01098eb377c3d3579b23ae54d80 (diff)
fix: Handle errors without response (#4274)
Diffstat (limited to 'app/javascript/mastodon/actions/timelines.js')
-rw-r--r--app/javascript/mastodon/actions/timelines.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/actions/timelines.js b/app/javascript/mastodon/actions/timelines.js
index dd14cb1cd..5c0cd93c7 100644
--- a/app/javascript/mastodon/actions/timelines.js
+++ b/app/javascript/mastodon/actions/timelines.js
@@ -105,7 +105,7 @@ export function refreshTimelineFail(timeline, error, skipLoading) {
     timeline,
     error,
     skipLoading,
-    skipAlert: error.response.status === 404,
+    skipAlert: error.response && error.response.status === 404,
   };
 };