Skip to content

Commit

Permalink
fix: do not save history to client if search.histories parameter is `…
Browse files Browse the repository at this point in the history
…false` (#222)
  • Loading branch information
nicokaiser committed Feb 22, 2024
1 parent 2881cc4 commit 6e9b943
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/search/js/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,9 @@ export default class Form {
engine.search(query, sorting, lang, years, taxonomies).then(({ results, time }) => {
this.renderer.render(query, results, time)
}).finally(() => {
Historiographer.save(query)
if (params.histories) {
Historiographer.save(query)
}
this.spinner.hide()
})
}
Expand Down

0 comments on commit 6e9b943

Please sign in to comment.