From 745bbe9de0687058b61a35cdfb25079e2ce5d849 Mon Sep 17 00:00:00 2001 From: Valik Date: Sun, 3 Dec 2023 14:52:06 +0100 Subject: [PATCH] fix: Removed unnecessary call to `clearGallery()` --- src/app/js/popularSearch.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/app/js/popularSearch.js b/src/app/js/popularSearch.js index 4a847c7..95dd77a 100644 --- a/src/app/js/popularSearch.js +++ b/src/app/js/popularSearch.js @@ -17,8 +17,6 @@ const handleSearchListItemClick = async (event) => { searchInput.value = selectedQuery; - clearGallery(); - const totalHits = await searchAndRenderPixabayImages(selectedQuery); updateResultsInfo(selectedQuery, totalHits);