From 1489d27405fe94712d1a978d9ca18336c8dde711 Mon Sep 17 00:00:00 2001 From: sophiamersmann Date: Mon, 16 Sep 2024 11:18:48 +0200 Subject: [PATCH] test: set selectedEntityNames to [] --- packages/@ourworldindata/grapher/src/core/Grapher.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@ourworldindata/grapher/src/core/Grapher.tsx b/packages/@ourworldindata/grapher/src/core/Grapher.tsx index 2f77b7d1250..ac29d926f4d 100644 --- a/packages/@ourworldindata/grapher/src/core/Grapher.tsx +++ b/packages/@ourworldindata/grapher/src/core/Grapher.tsx @@ -414,7 +414,7 @@ export class Grapher } = {} // Initializing arrays with `undefined` ensures that empty arrays get serialised - @observable selectedEntityNames?: EntityName[] = undefined + @observable selectedEntityNames?: EntityName[] = [] @observable excludedEntities?: number[] = undefined /** IncludedEntities are usually empty which means use all available entities. When includedEntities is set it means "only use these entities". excludedEntities