MOBILE-2795 ws: Fix handle exception in ajax request

main
Dani Palou 2019-01-08 08:20:10 +01:00
parent a709002f7e
commit b8526f585b
1 changed files with 1 additions and 1 deletions

View File

@ -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;