Skip to content

Commit

Permalink
Merge pull request #375 from akaene/fix/improvements-for-361-363
Browse files Browse the repository at this point in the history
Fix for 361 and 363
  • Loading branch information
blcham authored Jun 7, 2024
2 parents 1a36dbd + 43f5930 commit 2a81bc8
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 2a81bc8

Please sign in to comment.