Skip to content

Commit

Permalink
Fixed bundle display in summary
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Sep 20, 2021
1 parent c9ec5c7 commit e4d417a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/src/app/metadata/component/properties/ArrayProperty.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,20 @@ export function ArrayProperty ({ property, columns, preview }) {
{ property?.items?.enum?.length && property.uniqueItems ?
<>
{dataList.map((item, itemIdx) =>
(
!Array.isArray(item.key) &&
<div className={`d-flex justify-content-start border-bottom border-light ${ property.differences ? 'bg-diff' : '' }`} tabIndex="0" key={itemIdx}>
{item.differences && <span className="sr-only">Changed:</span> }
<span className="p-2" role="term" style={ {width} }><Translate value={item.label}>{ item.label }</Translate></span>
<span className="p-2" role="term" style={ {width} }>
<Translate value={item.label}>{ item.label }</Translate></span>
{ property.value.map((v, vIdx) =>
<div className="py-2" style={ {width} } key={vIdx}>
{v && v.indexOf(item.key) > -1 && <span><Translate value="value.true">true</Translate></span> }
{(!v || !(v.indexOf(item.key) > -1)) && <span><Translate value="value.false">false</Translate></span> }
</div>
)}
</div>
)
)}
</>
:
Expand Down

0 comments on commit e4d417a

Please sign in to comment.