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