Browse Source

fix(discover-tags): Add optional check for responseJSON (#52627)

Fixes JAVASCRIPT-2N6P
Nar Saynorath 1 year ago
parent
commit
f5fc129f96
1 changed files with 1 additions and 1 deletions
  1. 1 1
      static/app/views/discover/tags.tsx

+ 1 - 1
static/app/views/discover/tags.tsx

@@ -117,7 +117,7 @@ class Tags extends Component<Props, State> {
     } catch (err) {
       if (
         err.status !== 400 &&
-        err.responseJSON.detail !==
+        err.responseJSON?.detail !==
           'Invalid date range. Please try a more recent date range.'
       ) {
         Sentry.captureException(err);