Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/OpenPecha/Pecha.org into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Lungsangg committed Dec 26, 2024
2 parents aaa4578 + 696c485 commit e2f6baf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion static/js/ConnectionFilters.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,12 @@ class RecentFilterSet extends Component {
}
}
recentFilters = recentFilters.map(function(book) {
const commentary_cat = book.heBook == "Commentary" ? Sefaria._("text.commentary") : book.heBook;
return (<TextFilter
srefs={this.props.srefs}
key={book.filterKey}
book={book.book}
heBook={book.heBook}
heBook={commentary_cat}
category={book.category}
hideCounts={true}
hideColors={true}
Expand Down
6 changes: 4 additions & 2 deletions static/js/ConnectionsPanelHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ class ConnectionsPanelHeader extends Component {

} else if ((this.props.previousCategory && this.props.connectionsMode === "TextList") || previousMode) {
// In a text list, back to Previous Category
const prev = previousMode ? previousMode.splitCamelCase() : this.props.previousCategory;
const prevHe = previousMode ? Sefaria._(prev) : Sefaria._(this.props.previousCategory);
const commentary = this.props.previousCategory == "Commentary" ? 'text.commentary' : this.props.previousCategory
const prev = previousMode ? previousMode.splitCamelCase() : Sefaria._(commentary);
const prevHe = previousMode ? Sefaria._(prev) : Sefaria._(commentary);

const url = Sefaria.util.replaceUrlParam("with", prev);
title = <a href={url} className="connectionsHeaderTitle sans-serif active" onClick={this.onClick}>
<InterfaceText>
Expand Down

0 comments on commit e2f6baf

Please sign in to comment.