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

Commit

Permalink
Merge pull request #11 from Autodesk-Forge/playground-bug-fix
Browse files Browse the repository at this point in the history
Updating HRA with bug fix for non AEC models in Playground
  • Loading branch information
hbandlamudi authored Dec 9, 2021
2 parents 53a9fdb + 3f21030 commit 022bbb6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions client/pages/Playground.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,14 @@ function Playground(props) {
doNotCreateUI: true,
});
}
const floorData = levelsExt.floorSelector.floorData;
const floor = floorData[0];
levelsExt.floorSelector.selectFloor(floor.index, true);

if (levelsExt && levelsExt.floorSelector) {
const floorData = levelsExt.floorSelector.floorData;
if (floorData && floorData.length) {
const floor = floorData[0];
levelsExt.floorSelector.selectFloor(floor.index, true);
}
}

// Model Structure Info
let dataHelper = new DataHelper();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "forge-dataviz-iot-reference-app",
"version": "0.3.2",
"version": "0.3.3",
"description": "Autodesk Forge Viewer Data Visualization Sample Application",
"main": "server/localserver.js",
"scripts": {
Expand Down

0 comments on commit 022bbb6

Please sign in to comment.