Skip to content

Commit

Permalink
Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
YNazymko12 committed Dec 2, 2023
1 parent a94dc82 commit e62b549
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ window.addEventListener('scroll', handleScroll);

async function handleSearch(event) {
event.preventDefault();
pageNumber = 1;
query = event.target.searchQuery.value.trim();

if (!query.trim()) {
Expand Down

0 comments on commit e62b549

Please sign in to comment.