Changed api call body's container model to available container + Fix API nullable values

This commit is contained in:
Eric NGUYEN 2022-08-31 16:15:38 +02:00
parent 4588aa9443
commit 8034652bdb
5 changed files with 12 additions and 14 deletions

View file

@ -42,6 +42,9 @@ export async function SetContainerList(request: ISetContainerListRequest): Promi
if (window.fetch) {
return await fetch(url, {
method: 'POST',
headers: new Headers({
'Content-Type': 'application/json'
}),
body: dataParsed
})
.then(async(response) =>
@ -56,6 +59,7 @@ export async function SetContainerList(request: ISetContainerListRequest): Promi
resolve(JSON.parse(this.responseText));
}
};
xhr.setRequestHeader('Content-type', 'application/json');
xhr.send(dataParsed);
});
}