diff --git a/superset-frontend/src/preamble.ts b/superset-frontend/src/preamble.ts index 824bde3c15f..9d91c574f09 100644 --- a/superset-frontend/src/preamble.ts +++ b/superset-frontend/src/preamble.ts @@ -55,6 +55,11 @@ if (process.env.WEBPACK_MODE === 'development') { // Grab initial bootstrap data const bootstrapData = getBootstrapData(); +setupFormatters( + bootstrapData.common.d3_format, + bootstrapData.common.d3_time_format, +); + // Setup SupersetClient early so we can fetch language pack setupClient({ appRoot: applicationRoot() }); @@ -87,11 +92,6 @@ setupClient({ appRoot: applicationRoot() }); bootstrapData.common.extra_sequential_color_schemes, ); - setupFormatters( - bootstrapData.common.d3_format, - bootstrapData.common.d3_time_format, - ); - setupDashboardComponents(); const getMe = makeApi({