Fixed huge bug with link in library

This commit is contained in:
DrMint 2022-07-02 05:06:58 +02:00
parent 5c539a0b4b
commit 8a9d354503
1 changed files with 4 additions and 2 deletions

View File

@ -40,7 +40,6 @@ import {
filterHasAttributes,
isDefined,
isDefinedAndNotEmpty,
isUndefined,
sortContent,
} from "helpers/others";
@ -742,7 +741,10 @@ export function ContentLine(props: ContentLineProps): JSX.Element {
/>
)}
{isDefined(content) && (
<Button href={`/contents/${slug}`} text={langui.open_content} />
<Button
href={`/contents/${content.slug}`}
text={langui.open_content}
/>
)}
</>
) : (