mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
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:
@@ -124,7 +124,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
async function loadLocationsIntoSelect(selectElement, selectedValue = null) {
|
async function loadLocationsIntoSelect(selectElement, selectedValue = null) {
|
||||||
try {
|
try {
|
||||||
const response = await fetch('/Locations/Index');
|
const response = await fetch('/Locations/Index');
|
||||||
const locations = await response.json();
|
const data = await response.json();
|
||||||
|
const locations = data.locations;
|
||||||
|
|
||||||
const ts = selectElement.tomselect;
|
const ts = selectElement.tomselect;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user