Fix null tags
This commit is contained in:
parent
df72eee6e5
commit
5d657f9179
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ window.addEventListener('DOMContentLoaded', () => {
|
||||||
function adaptTags() {
|
function adaptTags() {
|
||||||
const tags = value.item.tags;
|
const tags = value.item.tags;
|
||||||
let string = '';
|
let string = '';
|
||||||
tags.forEach((t) => {string += '<li class="rounded"><a href="/tags/' + t.toLowerCase() + '/" class="btn btn-sm btn-info">' + t + "</a></li>"});
|
if (tags) tags.forEach((t) => {string += '<li class="rounded"><a href="/tags/' + t.toLowerCase() + '/" class="btn btn-sm btn-info">' + t + "</a></li>"});
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue