Skip to content

Commit

Permalink
Merge branch 'modularization-main' into feature/sc-28127/frontend-for…
Browse files Browse the repository at this point in the history
…-sheets-with-ref
  • Loading branch information
stevekaplan123 committed Sep 9, 2024
2 parents 9d6b15c + 6409ba4 commit 6091ad4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions sourcesheets/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1034,6 +1034,7 @@ def sheets_by_ref_api(request, ref):
if include_collections:
sheets = annotate_sheets_with_collections(sheets)
return jsonResponse(sheets)

def sheets_with_ref(request, tref):
"""
Accepts tref as a string which is expected to be in the format of a ref or refs separated by commas, indicating a range.
Expand Down
1 change: 1 addition & 0 deletions static/js/ElasticSearchQuerier.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import PropTypes from "prop-types";
import React from "react";
import {SearchResultList} from "./SearchResultList";
import SearchPage from "./SearchPage";

class TopicQuerier {
async addCollection(collection) {
const d = await Sefaria.getCollection(collection.key);
Expand Down
1 change: 1 addition & 0 deletions static/js/Sheets/SheetsWithRefPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const SheetsWithRefPage = ({srefs, searchState, updateSearchState, updateApplied
}
return sheets;
}

const updateFilterSelectedValues = (availableFilters) => {
availableFilters.forEach((availableFilter) => {
const selected = searchState.appliedFilters.includes(availableFilter.aggKey);
Expand Down

0 comments on commit 6091ad4

Please sign in to comment.