Skip to content

Commit

Permalink
mockdata
Browse files Browse the repository at this point in the history
  • Loading branch information
Ko71k committed Dec 17, 2024
1 parent b7ba4fb commit c78e17b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/src/components/EventCreateForm/EventCreateForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -217,7 +219,7 @@ export class EventCreateForm {
inputElement.value = formatDateTimeForInput(eventData[key]);
}
}
mock_data = { latitude: eventData.Latitude, longitude: eventData.Longitude, zoom: 17, needMark: true};

}

// Инициализация карты
Expand Down

0 comments on commit c78e17b

Please sign in to comment.