Skip to content

Commit

Permalink
value
Browse files Browse the repository at this point in the history
  • Loading branch information
Ko71k committed Dec 17, 2024
1 parent b82d15a commit cfe99d3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions public/src/modules/handleEventsActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export async function handleCreateEventEdit(event, id, 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));
const categoryId = Number(removeDangerous(document.getElementById('categoriesInput').value));

const latitude = removeDangerous(document.getElementById('latitude').value);
const longitude = removeDangerous(document.getElementById('longitude').value);
Expand Down Expand Up @@ -156,11 +156,7 @@ 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';
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));
let categoryId = Number(removeDangerous(document.getElementById('categoriesInput').value));
console.log(categoryId);
categoryId = 1;
const image = document.getElementById('imageInput').files[0];
Expand Down

0 comments on commit cfe99d3

Please sign in to comment.