mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
fix edge case with empty source collections
This commit is contained in:
parent
dfde49a555
commit
e4cb3a8030
2 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ function createWolframPage(context, pod, query, sources) {
|
|||
|
||||
// Only add a direct source if one is available
|
||||
if (src.collections) {
|
||||
res.embeds[0].description += citation(r, src.url, src.title + ' | ' + src.collections[0].text)
|
||||
res.embeds[0].description += citation(r, src.url, src.title + (src.collections[0] ? ' | ' + src.collections[0].text : ""))
|
||||
continue;
|
||||
}
|
||||
if (src.url) res.embeds[0].description += citation(r, src.url, src.title)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue