Merge pull request #205 from LD-Reborn/204-feature-link-to-asset-management-from-inventory-page

Fixed loadLocationsIntoSelect not working because of model change
This commit is contained in:
LD50
2025-10-31 08:03:59 +01:00
committed by GitHub

View File

@@ -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;