Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
stevekaplan123 committed Dec 11, 2024
1 parent 10032f0 commit 5807252
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions static/js/sheets/SheetOptions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {SignUpModalKind} from "../sefaria/signupModalContent";
import {CollectionsWidget} from "../CollectionsWidget";
const modifyHistoryObjectForSheetOptions = (historyObject) => {
// we want the 'ref' property to be for the sheet itself and not its segments, as in "Sheet 3" not "Sheet 3:4"
// because in the modularization version of the sheets viewer, the UI is designed so that the sheet is saved, not a specific segment
let newHistoryObject = Object.assign({}, historyObject);
const refParts = newHistoryObject.ref.split(":");
newHistoryObject.ref = refParts[0];
Expand Down

0 comments on commit 5807252

Please sign in to comment.