Skip to content

Commit

Permalink
fix: Re-export createReactClass to window as django templates rely on…
Browse files Browse the repository at this point in the history
… this variable (#13651)
  • Loading branch information
dashed authored Jun 12, 2019
1 parent 1a37030 commit cabb6ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sentry/static/sentry/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Reflux from 'reflux';
import * as Router from 'react-router';
import * as Sentry from '@sentry/browser';
import {ExtraErrorData, Tracing} from '@sentry/integrations';
import createReactClass from 'create-react-class';
import jQuery from 'jquery';
import moment from 'moment';

Expand Down Expand Up @@ -114,6 +115,9 @@ const globals = {
// makes use of it.
$: jQuery,
jQuery,

// django templates make use of these globals
createReactClass,
};

// The SentryApp global contains exported app modules for use in javascript
Expand Down

0 comments on commit cabb6ac

Please sign in to comment.