From d51c5508cec4d1affc1178115238f4f508078b93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Sandvik?= Date: Wed, 1 Apr 2020 11:46:15 +0200 Subject: [PATCH] fix: clear data and legend when loading fails --- src/loaders/thematicLoader.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/loaders/thematicLoader.js b/src/loaders/thematicLoader.js index 8dd0f78a7..b7b36f88e 100644 --- a/src/loaders/thematicLoader.js +++ b/src/loaders/thematicLoader.js @@ -53,6 +53,8 @@ const thematicLoader = async config => { } : {}), name: dataItem ? dataItem.name : i18n.t('Thematic layer'), + data: null, + legend: null, isLoaded: true, isVisible: true, };