Skip to content

Commit

Permalink
default ymaps mockdata
Browse files Browse the repository at this point in the history
  • Loading branch information
Ko71k committed Dec 17, 2024
1 parent c78e17b commit 02159b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/src/components/EventCreateForm/EventCreateForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }]) => ({
Expand Down Expand Up @@ -219,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 02159b9

Please sign in to comment.