Skip to content

Commit

Permalink
fix(topic page): source to appear under key sources iff source has ti…
Browse files Browse the repository at this point in the history
…tle or prompt
  • Loading branch information
yonadavGit committed Jun 9, 2024
1 parent e2875b6 commit 3a34089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/sefaria/sefaria.js
Original file line number Diff line number Diff line change
Expand Up @@ -2638,7 +2638,7 @@ _media: {},
for (let refObj of linkTypeObj.refs) {
let tabKey = linkTypeSlug;
if (tabKey === 'about') {
tabKey = refObj.descriptions && refObj.descriptions[lang] ? 'key-sources' : 'sources';
tabKey = (refObj.descriptions?.[lang]?.title || refObj.descriptions?.[lang]?.prompt) ? 'key-sources' : 'sources';
}
if (!tabs[tabKey]) {
let { title } = linkTypeObj;
Expand Down

0 comments on commit 3a34089

Please sign in to comment.