From c78e17bc2edacfb84acd4e8b7ef9a9a739f488ba Mon Sep 17 00:00:00 2001 From: Rassmagin Alexander Date: Tue, 17 Dec 2024 18:16:55 +0300 Subject: [PATCH] mockdata --- public/src/components/EventCreateForm/EventCreateForm.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}; + } // Инициализация карты