Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit 3f21030

Browse files
committed
Updating HRA with bug fix for non AEC models in Playgrounf
1 parent 53a9fdb commit 3f21030

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

client/pages/Playground.jsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,14 @@ function Playground(props) {
120120
doNotCreateUI: true,
121121
});
122122
}
123-
const floorData = levelsExt.floorSelector.floorData;
124-
const floor = floorData[0];
125-
levelsExt.floorSelector.selectFloor(floor.index, true);
123+
124+
if (levelsExt && levelsExt.floorSelector) {
125+
const floorData = levelsExt.floorSelector.floorData;
126+
if (floorData && floorData.length) {
127+
const floor = floorData[0];
128+
levelsExt.floorSelector.selectFloor(floor.index, true);
129+
}
130+
}
126131

127132
// Model Structure Info
128133
let dataHelper = new DataHelper();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "forge-dataviz-iot-reference-app",
3-
"version": "0.3.2",
3+
"version": "0.3.3",
44
"description": "Autodesk Forge Viewer Data Visualization Sample Application",
55
"main": "server/localserver.js",
66
"scripts": {

0 commit comments

Comments
 (0)