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
0705dc2c
Commit
0705dc2c
authored
Apr 26, 2022
by
Stefan Probst
Browse files
fix: fix draft workaround
parent
649c2b3d
Pipeline
#292844
passed with stages
in 9 minutes and 36 seconds
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/components/common/ItemLink.tsx
View file @
0705dc2c
...
...
@@ -23,9 +23,7 @@ export function ItemLink(props: ItemLinkProps): JSX.Element {
persistentId
,
versionId
,
},
{
draft
:
status
===
'
draft
'
?
true
:
undefined
,
},
status
===
'
draft
'
?
({
draft
:
true
}
as
any
)
:
undefined
,
)
return
<
Link
href
=
{
href
}
>
{
children
}
</
Link
>
...
...
src/components/item/ItemVersionControls.tsx
View file @
0705dc2c
...
...
@@ -33,7 +33,7 @@ export function ItemVersionControls(props: ItemVersionControlsProps): JSX.Elemen
<
LinkButton
href
=
{
itemRoutes
.
ItemEditVersionPage
(
category
)(
{
persistentId
,
versionId
},
{
draft
:
status
===
'
draft
'
?
true
:
undefined
}
,
status
===
'
draft
'
?
({
draft
:
true
}
as
any
)
:
undefined
,
)
}
color
=
"secondary"
size
=
"xs"
...
...
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