Skip to content

Commit

Permalink
Fix type error with marked update
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas ONeil <[email protected]>
  • Loading branch information
loneil committed Dec 1, 2023
1 parent 333f425 commit 55a8c42
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,8 @@ const { taa } = storeToRefs(useTenantStore());
// Render the markdown/html for the TAA text
const taaText = computed(() => {
return taa.value?.taa_record?.text
? DOMPurify.sanitize(marked(taa.value?.taa_record?.text))
: '';
const markdown = marked.parse(taa.value?.taa_record?.text) as string;
return taa.value?.taa_record?.text ? DOMPurify.sanitize(markdown) : '';
});
// Mechanism dropdown
Expand Down

0 comments on commit 55a8c42

Please sign in to comment.