Skip to content

Commit

Permalink
[frontend] Fix errors (#7634)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gwendoline-FAVRE-FELIX committed Sep 30, 2024
1 parent 1084ad0 commit 8ddf50c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ EntityDetailsComponentProps
)}
{stixCoreObject.entity_type === 'StixFile' && (
<>
{stixCoreObject.hashes && stixCoreObject.hashes.map((hashObj, index) => (
{stixCoreObject.hashes && stixCoreObject.hashes.map((hashObj, index) => (hashObj ? (
<div key={`${hashObj.algorithm}-${index}`}>
<Typography variant="h3" gutterBottom={true} className={classes.label}>
{hashObj.algorithm ? String(hashObj.algorithm) : ''}
Expand All @@ -339,7 +339,7 @@ EntityDetailsComponentProps
<span>{truncate(hashObj.hash, 40)}</span>
</Tooltip>
</div>
))}
) : null))}

{stixCoreObject.observableName && (
<>
Expand Down

0 comments on commit 8ddf50c

Please sign in to comment.