Skip to content

Commit

Permalink
Fix for #361 and #363
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasmadei authored and blcham committed Jun 7, 2024
1 parent 1a36dbd commit 43f5930
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const FaultEventMenu = ({ shapeToolData, onEventUpdated, refreshTree, rootIri }:

if (shapeToolData?.supertypes?.behavior?.item?.schematicDesignation) {
if (Array.isArray(shapeToolData?.supertypes?.behavior?.item?.schematicDesignation)) {
setSchematicDesignation(shapeToolData?.supertypes?.behavior?.item?.schematicDesignation.join(" "));
setSchematicDesignation(shapeToolData?.supertypes?.behavior?.item?.schematicDesignation.join(", "));
} else {
setSchematicDesignation(shapeToolData?.supertypes?.behavior?.item?.schematicDesignation);
}
Expand All @@ -110,14 +110,6 @@ const FaultEventMenu = ({ shapeToolData, onEventUpdated, refreshTree, rootIri }:
{/* ROOT NODE */}
{shapeToolData && shapeToolData.iri === rootIri && (
<>
{shapeToolData?.probability && (
<Box className={classes.labelRow}>
<Typography>
<span className={classes.label}>Calculated failure rate:</span>
{shapeToolData?.probability.toExponential(2)}
</Typography>
</Box>
)}
{basedFailureRate && (
<Box className={classes.labelRow}>
<Typography>
Expand Down

0 comments on commit 43f5930

Please sign in to comment.