Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SSHOC
sshoc-marketplace-frontend
Commits
86ed3b96
Commit
86ed3b96
authored
Jan 18, 2021
by
Stefan Probst
Browse files
fix: filter out steps in related items
parent
fe1ab878
Pipeline
#168266
passed with stage
in 4 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/screens/item/ItemLayout.tsx
View file @
86ed3b96
...
...
@@ -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
R
elatedItems
}
/>
<
RelatedItems
items
=
{
r
elatedItems
}
/>
</
div
>
<
SideColumn
>
<
VStack
className
=
"px-6 pt-6 pb-12 space-y-16"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment