Skip to content

Commit

Permalink
refactor: rearrange dashboard page js bundles (#16285)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grace Guo authored Aug 17, 2021
1 parent ac8e54d commit b87e0b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions superset-frontend/src/dashboard/containers/DashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ import {
import { hydrateDashboard } from 'src/dashboard/actions/hydrate';
import { setDatasources } from 'src/dashboard/actions/datasources';
import injectCustomCss from 'src/dashboard/util/injectCustomCss';
import setupPlugins from 'src/setup/setupPlugins';

setupPlugins();
const DashboardContainer = React.lazy(
() =>
import(
Expand Down
2 changes: 0 additions & 2 deletions superset-frontend/src/views/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,11 @@ import Menu from 'src/components/Menu/Menu';
import FlashProvider from 'src/components/FlashProvider';
import { theme } from 'src/preamble';
import ToastPresenter from 'src/messageToasts/containers/ToastPresenter';
import setupPlugins from 'src/setup/setupPlugins';
import setupApp from 'src/setup/setupApp';
import { routes, isFrontendRoute } from 'src/views/routes';
import { store } from './store';

setupApp();
setupPlugins();

const container = document.getElementById('app');
const bootstrap = JSON.parse(container?.getAttribute('data-bootstrap') ?? '{}');
Expand Down
2 changes: 1 addition & 1 deletion superset/templates/superset/partials/asset_bundle.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
with development version #}
<!-- Bundle js {{ filename }} START -->
{% for entry in js_manifest(filename) %}
<script src="{{ entry }}"></script>
<script src="{{ entry }}" async></script>
{% endfor %}
<!-- Bundle js {{ filename }} END -->
{% endmacro %}
Expand Down

0 comments on commit b87e0b3

Please sign in to comment.