Changed api call body's container model to available container + Fix API nullable values
This commit is contained in:
parent
4588aa9443
commit
8034652bdb
5 changed files with 12 additions and 14 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue