@doe-casl/verain-view
Advanced tools
Comparing version 1.3.47 to 1.3.48
{ | ||
"name": "@doe-casl/verain-view", | ||
"version": "1.3.47", | ||
"version": "1.3.48", | ||
"description": "VeraInView is a standalone HTML file that can act as an application to visualize your VERAin XML files.", | ||
@@ -5,0 +5,0 @@ "author": "Kitware, Inc.", |
@@ -144,3 +144,5 @@ import React from 'react'; | ||
const viz = this.props.ui.domain; | ||
const materialIds = viz.types.materials || []; | ||
let materialIds = viz.types.fuels || []; | ||
if (viz.types.materials) | ||
materialIds = materialIds.concat(viz.types.materials); | ||
@@ -166,3 +168,3 @@ const materialOptions = materialIds.map((id) => { | ||
dataKey: 'material', | ||
label: 'Material', | ||
label: 'Material / Fuel', | ||
render: (matId, item) => { | ||
@@ -169,0 +171,0 @@ const color = toRGB(viz.colors[matId]); |
@@ -102,3 +102,4 @@ import React from 'react'; | ||
const vizData = Object.assign({ selected: this.props.viewData.id }, viz); | ||
const types = viz.core.types[this.props.viewData.id] || []; | ||
const types = | ||
(viz.core.types && viz.core.types[this.props.viewData.id]) || []; | ||
return ( | ||
@@ -105,0 +106,0 @@ <div className={style.container}> |
6303245
20557