Skip to content

Commit

Permalink
fix(topics): Fix add topics from sidebar feature.
Browse files Browse the repository at this point in the history
This feature broke due to a recent refactor. JSON stringifying now happens lower down in the call stack.
  • Loading branch information
nsantacruz committed Jul 11, 2024
1 parent 17e22ab commit 62b293e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/TopicSearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class TopicSearch extends Component {
}

post(slug) {
const postJSON = JSON.stringify({"topic": slug, 'interface_lang': Sefaria.interfaceLang});
const postJSON = {"topic": slug, 'interface_lang': Sefaria.interfaceLang};
const srefs = this.props.srefs;
const update = this.props.update;
const reset = this.reset;
Expand Down

0 comments on commit 62b293e

Please sign in to comment.