Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelUd committed Dec 22, 2023
1 parent 9b112c2 commit 0f5aa61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ const onFiltersFormClick = (evt) =>{
filtersForm.querySelector(`#${activeFilter}`).classList.remove(ACTIVE_FILTER_CLASS);
evt.target.classList.add(ACTIVE_FILTER_CLASS);
activeFilter = id;
const pictures = filterFinction[id]();
destroyThumbnails();
thumbnailsRender(filterFinction[id]());
thumbnailsRender(pictures);
renderBigPicture(pictures);
}
};

Expand Down
1 change: 1 addition & 0 deletions js/fullsize-images-render.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const showBigPicture = (picture, photoInfo, image) => {
document.addEventListener('keydown', onDocumentKeydown);
};


export const renderBigPicture = (photoInfos) => {
const pictures = document.querySelectorAll('.picture');
photos = photoInfos.slice();
Expand Down

0 comments on commit 0f5aa61

Please sign in to comment.