From e0b3788a1b554149fed52df588bf9cfe83299c79 Mon Sep 17 00:00:00 2001 From: Sophia Mersmann Date: Tue, 17 Dec 2024 16:32:07 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20(admin)=20only=20evaluate=20char?= =?UTF-8?q?t=20series=20names=20once=20Grapher=20is=20ready?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/@ourworldindata/grapher/src/core/Grapher.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/@ourworldindata/grapher/src/core/Grapher.tsx b/packages/@ourworldindata/grapher/src/core/Grapher.tsx index a880dc4607..726fd3ed45 100644 --- a/packages/@ourworldindata/grapher/src/core/Grapher.tsx +++ b/packages/@ourworldindata/grapher/src/core/Grapher.tsx @@ -885,6 +885,8 @@ export class Grapher } @computed get chartSeriesNames(): SeriesName[] { + if (!this.isReady) return [] + // collect series names from all chart instances when faceted if (this.isFaceted) { const facetChartInstance = new FacetChart({ manager: this })