Commit 0705dc2c authored by Stefan Probst's avatar Stefan Probst
Browse files

fix: fix draft workaround

parent 649c2b3d
Pipeline #292844 passed with stages
in 9 minutes and 36 seconds
......@@ -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>
......
......@@ -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"
......
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