To display tags in the preview section on Knowledge base

<p className=“post-main-header-categoryTags text-left mt-5 mb-2”>

<span className=“popup-knowledgebase-forumTagSpan “>Tags:{” “}</span>

<p className=‘popup-knowledgebase-forumInnertag’>

{previewContent.selectedTags

.map((tagId) => {

const tag = tags.find((tag) => tag.id === tagId);

return tag ? tag.name : tagId; // Use tag name or tagId as per your data structure

})

.join(“, “)}

</p>

</p>

Leave a comment

Your email address will not be published. Required fields are marked *