fix: map access
This commit is contained in:
parent
f48610a9c6
commit
1aa50cdfc9
1 changed files with 1 additions and 1 deletions
|
@ -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,' ')
|
||||||
|
|
Reference in a new issue