Skip to content

Commit

Permalink
fix(llm): add missing .length
Browse files Browse the repository at this point in the history
  • Loading branch information
nsantacruz committed Feb 19, 2024
1 parent e4df4b5 commit 437a48e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/TopicPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ const TopicHeader = ({ topic, topicData, topicTitle, multiPanel, isCat, setNavTo
const { en, he } = !!topicData && topicData.primaryTitle ? topicData.primaryTitle : {en: "Loading...", he: "טוען..."};
const isTransliteration = !!topicData ? topicData.primaryTitleIsTransliteration : {en: false, he: false};
const sourceRefWithContextWithoutPrompt = getSourceRefWithContextWithoutPrompt(topicData.refs?.about?.refs);
const generateButtonName = sourceRefWithContextWithoutPrompt > 0 ? "generate" : null;
const generateButtonName = sourceRefWithContextWithoutPrompt.length > 0 ? "generate" : null;
const sourceRefExplicitlyNotPublished = getSourceRefExplicitlyNotPublished(topicData.refs?.about?.refs);
const publishButtonName = sourceRefExplicitlyNotPublished.length > 0 ? "publish" : null;
const category = !!topicData ? Sefaria.topicTocCategory(topicData.slug) : null;
Expand Down

0 comments on commit 437a48e

Please sign in to comment.