Skip to content

Commit

Permalink
fix: show search stat when searching without keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Feb 19, 2024
1 parent d694f1c commit b782874
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions assets/search/js/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,6 @@ export default class Renderer {

private renderStat() {
const stat = this.getStatistics()
if (this.query === '') {
stat.innerHTML = ''
return
}
stat.innerHTML = i18n.translate('search_stat', {
count: this.results.length,
total: `<span class="search-stat-results">${this.results.length}</span>`,
Expand Down

0 comments on commit b782874

Please sign in to comment.