mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
resolves an issue with some datasources
This commit is contained in:
parent
3c09397e55
commit
e1f7a29638
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,8 @@ function createWolframPage(context, pod, query, sources){
|
|||
if(pod.value && pod.refs) {
|
||||
for(const r of pod.refs){
|
||||
let src = Object.values(sources).filter((s)=>s.ref == r)[0]
|
||||
if(!src) continue;
|
||||
|
||||
// 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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue