Skip to content

Commit dc9a69a

Browse files
🐛 (admin) only evaluate chart series names once Grapher is ready
1 parent 0ba95df commit dc9a69a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/@ourworldindata/grapher/src/core/Grapher.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,8 @@ export class Grapher
885885
}
886886

887887
@computed get chartSeriesNames(): SeriesName[] {
888+
if (!this.isReady) return []
889+
888890
// collect series names from all chart instances when faceted
889891
if (this.isFaceted) {
890892
const facetChartInstance = new FacetChart({ manager: this })

0 commit comments

Comments
 (0)