fix error

This commit is contained in:
bignutty 2024-08-14 00:12:03 +02:00
parent a8dcd920cf
commit cff77f1a64
2 changed files with 2 additions and 2 deletions

View file

@ -100,7 +100,7 @@ function createSearchResultPage(context, result, doodle){
if(result.card.type) res.description += `-# ${result.card.type}` if(result.card.type) res.description += `-# ${result.card.type}`
if(result.card.color !== "") res.color = parseInt(result.card.color.substring(1,10), 16) if(result.card.color && result.card.color !== "") res.color = parseInt(result.card.color.substring(1,10), 16)
if(result.card.description !== ""){ if(result.card.description !== ""){
res.description += "\n\n" + result.card.description res.description += "\n\n" + result.card.description

View file

@ -101,7 +101,7 @@ function createSearchResultPage(context, result, doodle){
if(result.card.type) res.description += `-# ${result.card.type}` if(result.card.type) res.description += `-# ${result.card.type}`
if(result.card.color !== "") res.color = parseInt(result.card.color.substring(1,10), 16) if(result.card.color && result.card.color !== "") res.color = parseInt(result.card.color.substring(1,10), 16)
if(result.card.description !== ""){ if(result.card.description !== ""){
res.description += "\n\n" + result.card.description res.description += "\n\n" + result.card.description