From fc011c09e496be5597cd309727681bba4731615d Mon Sep 17 00:00:00 2001 From: Niels van Velzen Date: Tue, 5 Jan 2021 15:47:19 +0100 Subject: [PATCH] Update index.js --- src/controllers/itemDetails/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/itemDetails/index.js b/src/controllers/itemDetails/index.js index a3e0bf194c..2694ad2316 100644 --- a/src/controllers/itemDetails/index.js +++ b/src/controllers/itemDetails/index.js @@ -697,9 +697,9 @@ function reloadFromItem(instance, page, params, item, user) { const itemBirthLocation = page.querySelector('#itemBirthLocation'); if (item.Type == 'Person' && item.ProductionLocations && item.ProductionLocations.length) { - const location = item.ProductionLocations[0]; + let location = item.ProductionLocations[0]; if (!layoutManager.tv && appHost.supports('externallinks')) { - gmap = `${location}`; + location = `${location}`; } itemBirthLocation.classList.remove('hide'); itemBirthLocation.innerHTML = globalize.translate('BirthPlaceValue', location);