diff --git a/src/wwwroot/js/site.js b/src/wwwroot/js/site.js index 57d910d..ac2916a 100644 --- a/src/wwwroot/js/site.js +++ b/src/wwwroot/js/site.js @@ -124,7 +124,8 @@ document.addEventListener('DOMContentLoaded', () => { async function loadLocationsIntoSelect(selectElement, selectedValue = null) { try { const response = await fetch('/Locations/Index'); - const locations = await response.json(); + const data = await response.json(); + const locations = data.locations; const ts = selectElement.tomselect;