Skip to content

Commit

Permalink
more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ko71k committed Dec 17, 2024
1 parent 6cc3a03 commit 1444f64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions public/src/components/EventCreateForm/EventCreateForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ export class EventCreateForm {
reader.readAsDataURL(file);
}
});
console.log(eventData);
if (eventData) {
console.log('createtefevtnt');
img.src = `${endpoint}/${eventData.image}`;
Expand Down
6 changes: 1 addition & 5 deletions public/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,8 @@ const routes = {
'/add_event': async() => {
newsFeed.innerHTML = ''; // Clear the modal window content
const categSelect = await loadCategories();
const formCreate = new EventCreateForm().renderTemplate(categSelect);
const formCreate = new EventCreateForm().renderTemplate(categSelect, null);
newsFeed.appendChild(formCreate);
//const createBtn = document.getElementById('eventSubmitBtn');
//createBtn.addEventListener('click', (event) => handleCreateEventSubmit(event, '/events/my', navigate));

},
'/edit_event': async(id) => {
Expand All @@ -242,8 +240,6 @@ const routes = {
const eventData = await loadEvent(id);
const formCreate = new EventCreateForm().renderTemplate(categSelect, eventData);
newsFeed.appendChild(formCreate);
const createBtn = document.getElementById('eventSubmitBtn');
createBtn.addEventListener('click', (event) => handleCreateEventEdit(event, id, navigate));
},
'/notifications': async(id) => {
newsFeed.innerHTML = ''; // Clear the modal window content
Expand Down

0 comments on commit 1444f64

Please sign in to comment.