fix: map access

This commit is contained in:
Cory Dransfeldt 2024-04-20 12:21:30 -07:00
parent f48610a9c6
commit 1aa50cdfc9

View file

@ -60,7 +60,7 @@ export const tagMap = (collection) => {
}) })
links.forEach((link) => { links.forEach((link) => {
const url = link.data.link const url = link.data.link
const tagString = [...new Set(link.data.tags.map((tag) => tagAliases[tag.toLowerCase()]))] const tagString = [...new Set(link.data.tags?.map((tag) => tagAliases[tag.toLowerCase()]))]
.join(' ') .join(' ')
.trim() .trim()
if (tagString) tags[url] = tagString.replace(/\s+/g,' ') if (tagString) tags[url] = tagString.replace(/\s+/g,' ')