about summary refs log tree commit diff
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-23 22:18:08 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-23 22:18:08 +0100
commit1761d3f9c33f3e2e98a09906fae1a03783b54b10 (patch)
treea047598877cca70ab7c7de695bf81c762ed5cc34 /app/assets/javascripts
parentd00189b55a2fe58f6ba6ccaa1f3712f55dc304dc (diff)
Fix mistake
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/components/actions/cards.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/actions/cards.jsx b/app/assets/javascripts/components/actions/cards.jsx
index 714e80525..845d15e93 100644
--- a/app/assets/javascripts/components/actions/cards.jsx
+++ b/app/assets/javascripts/components/actions/cards.jsx
@@ -9,7 +9,7 @@ export function fetchStatusCard(id) {
     dispatch(fetchStatusCardRequest(id));
 
     api(getState).get(`/api/v1/statuses/${id}/card`).then(response => {
-      if (response.data.length === 0) {
+      if (!response.data.url) {
         return;
       }