Skip to content

Commit fec7e5e

Browse files
committed
🐛(heightgraph): Fix render when attribute === 0
1 parent 9e55451 commit fec7e5e

7 files changed

+7
-7
lines changed

dist/Vue2LeafletHeightGraph.common.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Vue2LeafletHeightGraph.common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Vue2LeafletHeightGraph.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Vue2LeafletHeightGraph.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Vue2LeafletHeightGraph.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Vue2LeafletHeightGraph.umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const buildCollections = (extras, coordinates) => {
6161
*/
6262
const addAttributeTypeProperty = (feature) => {
6363
feature.properties = feature.properties || {}
64-
feature.properties.attributeType = feature.properties.attributeType || 'elevation'
64+
feature.properties.attributeType = typeof feature.properties.attributeType === 'undefined' ? 'elevation' : feature.properties.attributeType
6565
}
6666

6767
/**

0 commit comments

Comments
 (0)