diff --git a/connectors/aps-props-connector/DesignPropsConnector.pq b/connectors/aps-props-connector/DesignPropsConnector.pq index 1218547..0a54c5e 100644 --- a/connectors/aps-props-connector/DesignPropsConnector.pq +++ b/connectors/aps-props-connector/DesignPropsConnector.pq @@ -1,4 +1,4 @@ -[Version = "0.0.5"] +[Version = "0.0.6"] section DesignPropsConnector; SECRETS = Json.Document(Extension.Contents("secrets.json")); diff --git a/services/aps-shares-app/package.json b/services/aps-shares-app/package.json index 1250705..fde08ad 100644 --- a/services/aps-shares-app/package.json +++ b/services/aps-shares-app/package.json @@ -1,7 +1,7 @@ { "name": "aps-shares-app", "description": "Simple web application providing public access to selected designs in Autodesk Platform Services.", - "version": "0.0.5", + "version": "0.0.6", "main": "index.js", "scripts": { "start": "node index.js" diff --git a/visuals/aps-viewer-visual/pbiviz.json b/visuals/aps-viewer-visual/pbiviz.json index 4739a51..76c42b8 100644 --- a/visuals/aps-viewer-visual/pbiviz.json +++ b/visuals/aps-viewer-visual/pbiviz.json @@ -1,10 +1,10 @@ { "visual": { "name": "aps-viewer-visual", - "displayName": "APS Viewer Visual (0.0.5)", + "displayName": "APS Viewer Visual (0.0.6)", "guid": "aps_viewer_visual_a4f2990a03324cf79eb44f982719df44", "visualClassName": "Visual", - "version": "0.0.5", + "version": "0.0.6", "description": "Visual for displaying shared 2D/3D designs from Autodesk Platform Services.", "supportUrl": "https://github.com/autodesk-platform-services/aps-powerbi-tools", "gitHubUrl": "https://github.com/autodesk-platform-services/aps-powerbi-tools" diff --git a/visuals/aps-viewer-visual/src/viewer.utils.ts b/visuals/aps-viewer-visual/src/viewer.utils.ts index ceea673..5b6ebbf 100644 --- a/visuals/aps-viewer-visual/src/viewer.utils.ts +++ b/visuals/aps-viewer-visual/src/viewer.utils.ts @@ -14,7 +14,7 @@ export function initializeViewerRuntime(options: Autodesk.Viewing.InitializerOpt await loadScript('https://developer.api.autodesk.com/modelderivative/v2/viewers/7.*/viewer3D.js'); await loadStylesheet('https://developer.api.autodesk.com/modelderivative/v2/viewers/7.*/style.css'); return new Promise((resolve, reject) => Autodesk.Viewing.Initializer(runtime.options, resolve)); - })(); + })() as Promise; } else { if (['accessToken', 'getAccessToken', 'env', 'api', 'language'].some(prop => options[prop] !== runtime.options[prop])) { return Promise.reject('Cannot initialize another viewer runtime with different settings.'); diff --git a/visuals/aps-viewer-visual/src/visual.ts b/visuals/aps-viewer-visual/src/visual.ts index db5f25b..034b252 100644 --- a/visuals/aps-viewer-visual/src/visual.ts +++ b/visuals/aps-viewer-visual/src/visual.ts @@ -78,10 +78,10 @@ export class Visual implements IVisual { } if (this.viewer && this.idMapping && this.currentDataView) { - const externalIds = this.currentDataView.table?.rows; + const externalIds = this.currentDataView.table.rows || []; //@ts-ignore - const isDataFilterApplied = this.currentDataView.metadata?.isDataFilterApplied; - if (externalIds?.length > 0 && isDataFilterApplied) { + const isDataFilterApplied = this.currentDataView.metadata && this.currentDataView.metadata.isDataFilterApplied; + if (externalIds.length > 0 && isDataFilterApplied) { //@ts-ignore const dbids = await this.idMapping.getDbids(externalIds); this.viewer.isolate(dbids); @@ -186,7 +186,7 @@ export class Visual implements IVisual { } private async onSelectionChanged() { - const allExternalIds = this.currentDataView?.table?.rows; + const allExternalIds = this.currentDataView.table.rows; if (!allExternalIds) { return; }