mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
fix error
This commit is contained in:
parent
a8dcd920cf
commit
cff77f1a64
2 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ function createSearchResultPage(context, result, doodle){
|
|||
|
||||
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 !== ""){
|
||||
res.description += "\n\n" + result.card.description
|
||||
|
|
|
@ -101,7 +101,7 @@ function createSearchResultPage(context, result, doodle){
|
|||
|
||||
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 !== ""){
|
||||
res.description += "\n\n" + result.card.description
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue