Skip to content

Commit

Permalink
fix: Removed unnecessary call to clearGallery()
Browse files Browse the repository at this point in the history
  • Loading branch information
Valik3201 committed Dec 3, 2023
1 parent 923652b commit 745bbe9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/app/js/popularSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ const handleSearchListItemClick = async (event) => {

searchInput.value = selectedQuery;

clearGallery();

const totalHits = await searchAndRenderPixabayImages(selectedQuery);

updateResultsInfo(selectedQuery, totalHits);
Expand Down

0 comments on commit 745bbe9

Please sign in to comment.