preparing to patch multiple (selected) times in one call

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-10-27 08:47:13 +01:00
parent 0e551f45b6
commit 8239bfefab
3 changed files with 36 additions and 20 deletions

View File

@@ -139,7 +139,6 @@
async function patchLocation(location,field,newValue){
const data = {};
data[field] = newValue;
console.log(data);
const url = api(`stock/location/${location.id}`);
const res = await fetch(url,{
credentials: 'include',