mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
fix(d3-format): call setupFormatters synchronously to apply D3 format… (#35529)
This commit is contained in:
@@ -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<void, User>({
|
||||
|
||||
Reference in New Issue
Block a user