Skip to content

Commit

Permalink
category in addEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
Ko71k committed Nov 25, 2024
1 parent 6911c34 commit a6487a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/modules/handleEventsActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ export async function loadCategories() {
const categories = await response.json();

// Заполнение выпадающего списка
categories.forEach(category => {
categories.categories.forEach(category => {
const option = document.createElement('option');
option.value = category.id; // id категории
option.value = category.ID; // id категории
option.textContent = category.name; // название категории
selectElement.appendChild(option);
});
Expand Down

0 comments on commit a6487a3

Please sign in to comment.