diff --git a/public/src/components/EventCreateForm/EventCreateForm.js b/public/src/components/EventCreateForm/EventCreateForm.js index 85060fa..6f9017c 100644 --- a/public/src/components/EventCreateForm/EventCreateForm.js +++ b/public/src/components/EventCreateForm/EventCreateForm.js @@ -124,6 +124,8 @@ export class EventCreateForm { * @returns {HTMLFormElement} The rendered form */ renderTemplate(selectElement, eventData) { + const mock_data = { latitude: eventData.Latitude, longitude: eventData.Longitude, zoom: 17, needMark: true}; + const html = template({ items: Object.entries(this.config).map(([key, { tag, text, className, type }]) => ({ key, @@ -217,7 +219,7 @@ export class EventCreateForm { inputElement.value = formatDateTimeForInput(eventData[key]); } } - mock_data = { latitude: eventData.Latitude, longitude: eventData.Longitude, zoom: 17, needMark: true}; + } // Инициализация карты