Commit 86ed3b96 authored by Stefan Probst's avatar Stefan Probst
Browse files

fix: filter out steps in related items

parent fe1ab878
Pipeline #168266 passed with stage
in 4 minutes and 56 seconds
......@@ -58,6 +58,11 @@ export default function ItemLayout({
order: ['label'],
}
// TODO: allow linking to individual workflow steps
const relatedItems = (item.relatedItems as RelatedItems).filter(
(item) => item.category !== 'step',
)
return (
<Fragment>
<Metadata
......@@ -97,7 +102,7 @@ export default function ItemLayout({
</div>
{children}
<div className={cx(styles.mainColumn, 'px-6 py-6')}>
<RelatedItems items={item.relatedItems as RelatedItems} />
<RelatedItems items={relatedItems} />
</div>
<SideColumn>
<VStack className="px-6 pt-6 pb-12 space-y-16">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment