From 0b32d8115bef6eb0bb69dbc8f0a20a9c844b39ed Mon Sep 17 00:00:00 2001 From: dcore94 Date: Wed, 21 Jun 2023 15:38:31 +0200 Subject: [PATCH] expected data is now json --- ccp/js/methodeditorcontroller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccp/js/methodeditorcontroller.js b/ccp/js/methodeditorcontroller.js index e534c30..84fe2f8 100644 --- a/ccp/js/methodeditorcontroller.js +++ b/ccp/js/methodeditorcontroller.js @@ -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){