File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const ColumnDetailsCategorical = ({
3737 getLocalizedValue ( option , datasetId ) ,
3838 ) ;
3939 const barData = {
40- localizedLabels,
40+ labels : localizedLabels ,
4141 datasets : [
4242 {
4343 label : id ,
Original file line number Diff line number Diff line change 1- import './assetPath ' ;
1+ import './setAssetPathDev ' ;
22import './setPublicPath' ;
33import { initAll , instructionsDismissed } from './index' ;
44import queryString from 'query-string' ;
Original file line number Diff line number Diff line change 1+ // Dev-only: seed the asset-path global for the standalone dev host page.
2+ //
3+ // Production consumers (e.g. dashboard) call setAssetPath(...) themselves
4+ // before loading the bundle, pointing it at wherever they serve the
5+ // images + datasets. In dev the standalone index.html IS the consumer,
6+ // so we inline the assignment here.
7+ //
8+ // Import this FIRST in indexDev.tsx so the global is set before either
9+ // `setPublicPath` reads it for webpack's `__webpack_public_path__` OR
10+ // the direct readers in `index.tsx` / `SelectDataset.tsx` build URLs
11+ // from it. ESM guarantees depth-first evaluation in import order, so
12+ // this module's body runs before any later import is evaluated.
13+ //
14+ // Value: './' — webpack emits images to `images/` (in-memory, served by
15+ // webpack-dev-middleware) and `webpack-dev-server --static public`
16+ // serves `public/datasets/*` at `/datasets/*` on disk. Both sit at the
17+ // root, so the single-prefix model works.
18+ import { setAssetPath } from './assetPath' ;
19+
20+ setAssetPath ( './' ) ;
You can’t perform that action at this time.
0 commit comments