From 957c59aafbe40967a7d2e17ee09f9a98e71d7b06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jake=20St=C3=A4zrad?= Date: Tue, 21 Sep 2021 10:52:18 -0500 Subject: [PATCH] pass empty array instead of undefined for features from layer --- package-lock.json | 2 +- package.json | 2 +- src/Draw/__snapshots__/DrawContainer.test.js.snap | 2 +- src/LayerPanel/LayerPanelLayersPage/index.js | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index bc58a6d4..e7051255 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@bayer/ol-kit", - "version": "1.14.0", + "version": "1.14.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index d1f61c3e..6c95f6e5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bayer/ol-kit", - "version": "1.14.0", + "version": "1.14.1", "license": "BSD", "description": "Mapping components & utils built with openlayers + react", "keywords": [ diff --git a/src/Draw/__snapshots__/DrawContainer.test.js.snap b/src/Draw/__snapshots__/DrawContainer.test.js.snap index 1a3ca85e..d894154a 100644 --- a/src/Draw/__snapshots__/DrawContainer.test.js.snap +++ b/src/Draw/__snapshots__/DrawContainer.test.js.snap @@ -18,7 +18,7 @@ exports[` should render a basic prebuilt DrawContainer componen class=\\"sc-gtssRu fBppYk\\" href=\\"https://ol-kit.com/\\" target=\\"_blank\\" - title=\\"Powered by ol-kit v1.14.0\\" + title=\\"Powered by ol-kit v1.14.1\\" >  { - if (!this.isValidVectorLayer(layer)) return - if (this.props.shouldHideFeatures(layer)) return + if (!this.isValidVectorLayer(layer)) return [] + if (this.props.shouldHideFeatures(layer)) return [] return layer.getSource().getFeatures().map(feature => { const isVisible = feature.get('_ol_kit_feature_visibility') === undefined ? true : feature.get('_ol_kit_feature_visibility')