Skip to content

Commit

Permalink
testing categoriesinput
Browse files Browse the repository at this point in the history
  • Loading branch information
Ko71k committed Dec 17, 2024
1 parent c823a7e commit b7ba4fb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion public/src/modules/handleEventsActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,13 @@ export async function handleCreateEventSubmit(event, pageToCome, navigate) {
const tag = Array.from(document.getElementById('eventTagEntry').value.split(' '), (tag) => removeDangerous(tag));
const dateStart = removeDangerous(document.getElementById('eventBeginEntry').value) + ':00Z';
const dateEnd = removeDangerous(document.getElementById('eventEndEntry').value) + ':00Z';
const categoryId = Number(removeDangerous(document.getElementById('categoriesInput').id));
console.log(document.getElementById('categoriesInput'));
console.log(document.getElementById('categoriesInput').id);
console.log(document.getElementById('categoriesInput').value);

let categoryId = Number(removeDangerous(document.getElementById('categoriesInput').id));
console.log(categoryId);
categoryId = 1;
const image = document.getElementById('imageInput').files[0];

const latitude = removeDangerous(document.getElementById('latitude').value);
Expand Down

0 comments on commit b7ba4fb

Please sign in to comment.