Skip to content

Commit c0313e0

Browse files
committed
adapted to new api without status
1 parent f7d6671 commit c0313e0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

services/web/client/source/class/qxapp/components/workbench/NodeBase.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ qx.Class.define("qxapp.components.workbench.NodeBase", {
202202
socket.on(slotName, function(val) {
203203
const {
204204
data,
205-
status
205+
error
206206
} = val;
207-
if (status == 201) {
207+
if (!error) {
208208
const publishedPort = data["published_port"];
209209
const entryPointD = data["entry_point"];
210210
const nodeId = data["service_uuid"];

services/web/client/source/class/qxapp/data/Store.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ qx.Class.define("qxapp.data.Store", {
125125
let requ = e.getTarget();
126126
const {
127127
data,
128-
status
128+
error
129129
} = requ.getResponse();
130-
if (status >= 200 && status <= 299) {
130+
if (!error) {
131131
const listOfRepositories = data;
132132
console.log("listOfServices", listOfRepositories);
133133
let services = [];
@@ -152,9 +152,9 @@ qx.Class.define("qxapp.data.Store", {
152152
socket.on("getInteractiveServices", function(e) {
153153
const {
154154
data,
155-
status
155+
error
156156
} = e;
157-
if (status >= 200 && status <= 299) {
157+
if (!error) {
158158
let listOfInteractiveServices = data;
159159
console.log("listOfInteractiveServices", listOfInteractiveServices);
160160
let services = [];

0 commit comments

Comments
 (0)