diff --git a/directories/events-directory/event-details/app_event.js b/directories/events-directory/event-details/app_event.js
index fe3b997d..a16d222f 100644
--- a/directories/events-directory/event-details/app_event.js
+++ b/directories/events-directory/event-details/app_event.js
@@ -221,7 +221,7 @@ function wrapVenueDetails(event) {
}
var venueName = event.venueName;
if (event.venueLink !== "") {
- venueName = `${venueName}`;
+ venueName = `${venueName}`;
}
$("#venue-name").html(`
@@ -237,13 +237,13 @@ function wrapVenueDetails(event) {
if (event.website !== "" && (eventOver || event.eventBrite !== "")) {
$("#venue-website").html(`
- Event Website`);
+ Event Website`);
} else {
$("#venue-website").remove();
}
$("#venue-website").html(`
- Event Website`);
+ Event Website`);
}
function wrapSpeakers(id, speakers) {
@@ -307,12 +307,12 @@ function addChips(id, items) {
function addMap(eventDetails) {
if (eventDetails.latitude === "") {
- $("#map").empty();
+ $("#map").remove();
return;
}
const map = new maplibregl.Map({
container: "map",
- style: "./style.json",
+ style: "https://www.fiware.org/wp-content/directories/events-directory/event-details/style.json",
maxZoom: 20,
minZoom: 3,
attributionControl: false,
@@ -395,7 +395,7 @@ function loadEventDetails() {
window.history.back();
});
- if ($.urlParam("id") && window.eventData[$.urlParam("id")]) {
+ if ($.urlParam("id") && window.eventData && window.eventData[$.urlParam("id")]) {
fillJob(window.eventData[$.urlParam("id")]);
} else {
$(".et_pb_section_1").remove();