Skip to content
Snippets Groups Projects
Commit db69b111 authored by René Rösner's avatar René Rösner
Browse files

Fix(planning#831): Fixed build error due to type mismatch

parent b6153ba6
No related branches found
No related tags found
1 merge request!89planning#831: API spec ressources
......@@ -34,6 +34,10 @@ export default function ({ contentsString }) {
router.push(`?filter=${encodeURIComponent(filterToParams())}`, undefined, { shallow: true })
}
function prepareShortDescription(service: ResourceContent): any {
return service.shortDescription !== '' ? remark().use(html).processSync(service.shortDescription) : service.text
}
const hasContentTag = (content: ResourceContent, tagName: string) => {
const tags: Tag[] = content.tags.filter(tag => tag.name + ':' + tag.value === tagName)
return tags.length > 0
......@@ -173,7 +177,7 @@ export default function ({ contentsString }) {
<div
className="mt-2 text-sm text-gray-700 space-y-4"
dangerouslySetInnerHTML={{
__html: service.shortDescription !== '' ? remark().use(html).processSync(service.shortDescription) : service.text,
__html: prepareShortDescription(service),
}}
/>
<div className="mt-6 flex justify-end space-x-8">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment