MOBILE-2795 ws: Fix handle exception in ajax request
parent
a709002f7e
commit
b8526f585b
|
@ -261,7 +261,7 @@ export class CoreWSProvider {
|
||||||
data = data[0];
|
data = data[0];
|
||||||
|
|
||||||
if (data.error) {
|
if (data.error) {
|
||||||
return rejectWithError(data);
|
return rejectWithError(data.exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
return data.data;
|
return data.data;
|
||||||
|
|
Loading…
Reference in New Issue