Skip to content

Commit

Permalink
Merge pull request #73 from Smithsonian/bug-fixes
Browse files Browse the repository at this point in the history
Bug fixes
  • Loading branch information
gjcope authored Apr 19, 2021
2 parents d4391dd + 1039b15 commit aee0363
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "voyager",
"version": "0.12.0",
"version": "0.12.2",
"description": "Smithsonian DPO Voyager - 3D Explorer and Tool Suite",
"scripts": {
"start": "npm run server",
Expand Down
6 changes: 5 additions & 1 deletion source/client/applications/ExplorerApplication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,17 +247,21 @@ Version: ${ENV_VERSION}
//}

let elementValues = 0;
let hasValidParam = false;

const enumNames = Object.values(EUIElements).filter(value => typeof value === 'string') as string[];
const uiParams = props.uiMode.split('|');
uiParams.forEach(param => {
const stdParam = param.toLowerCase();
if(enumNames.includes(stdParam)) {
elementValues += EUIElements[stdParam];
hasValidParam = true;
}
});

this.documentProvider.activeComponent.setup.interface.ins.visibleElements.setValue(elementValues);
if(hasValidParam) {
this.documentProvider.activeComponent.setup.interface.ins.visibleElements.setValue(elementValues);
}
}

if(props.dracoRoot) {
Expand Down

0 comments on commit aee0363

Please sign in to comment.