diff --git a/CHANGELOG.md b/CHANGELOG.md index 256dd17..9659864 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 3.3.2.0 +* Fixed console error "undefined CustomVisualObjects" + ## 3.3.1.0 * Fixed bug that occurs when resizing the visual * Fixed console error in formatting mode diff --git a/package-lock.json b/package-lock.json index f9da7be..493c45f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "powerbi-visuals-globemap", - "version": "3.3.1.0", + "version": "3.3.2.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "powerbi-visuals-globemap", - "version": "3.3.1.0", + "version": "3.3.2.0", "license": "MIT", "dependencies": { "d3-selection": "^3.0.0", diff --git a/package.json b/package.json index c2b8790..5fd355c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "powerbi-visuals-globemap", "description": "GlobeMap", - "version": "3.3.1.0", + "version": "3.3.2.0", "author": { "name": "Microsoft", "email": "pbicvsupport@microsoft.com" diff --git a/pbiviz.json b/pbiviz.json index d690caa..7011a91 100644 --- a/pbiviz.json +++ b/pbiviz.json @@ -4,7 +4,7 @@ "displayName": "GlobeMap", "guid": "GlobeMap1447669447625", "visualClassName": "GlobeMap", - "version": "3.3.1.0", + "version": "3.3.2.0", "description": "A 3D visual using WebGL for plotting locations, with category values displayed as bar heights and heat maps.\n\nShift+Click on bar to change center point. \nSlicing data points will animate to average location.\n\nAttributions:\nthree.js - https://github.com/mrdoob/three.js/\nwebgl-heatmap - https://github.com/pyalot/webgl-heatmap", "supportUrl": "https://aka.ms/customvisualscommunity", "gitHubUrl": "https://github.com/Microsoft/powerbi-visuals-globemap" diff --git a/src/globemap.ts b/src/globemap.ts index 9723a09..eb90542 100644 --- a/src/globemap.ts +++ b/src/globemap.ts @@ -1163,7 +1163,7 @@ export class GlobeMap implements IVisual { } private updateOutlinesFromSubSelections(subSelections: CustomVisualSubSelection[]){ - const visualObject = subSelections?.[0].customVisualObjects[0]; + const visualObject = subSelections?.[0]?.customVisualObjects[0]; if (visualObject) { switch (visualObject.objectName) { case DataPointReferences.fill.objectName: