Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
LesiaUKR committed Nov 23, 2023
1 parent 5882247 commit d307528
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ const breedSelect = new SlimSelect({
// },
});

select.classList.add('hidden');
loader.classList.remove('hidden');

fetchBreeds()
.then(data => {
const options = [
Expand All @@ -29,10 +32,11 @@ fetchBreeds()
})),
];
breedSelect.setData(options);
select.addEventListener('change', onChangeSelect);

select.classList.remove('hidden');
loader.classList.add('hidden');

select.addEventListener('change', onChangeSelect);
})
.catch(err => {
console.log(err);
Expand Down

0 comments on commit d307528

Please sign in to comment.