expected data is now json

This commit is contained in:
dcore94 2023-06-21 15:38:31 +02:00
parent 4f89d5e8f1
commit 0b32d8115b
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ class CCPMethodEditorController extends HTMLElement{
this.#boot.secureFetch(url, args).then(
(resp)=>{
if(resp.status === 201 || resp.status === 204){
return resp.text()
return resp.json()
}else throw "Error saving process: " + resp.status
}).then(data=>{
if(!this.#isupdate){