Skip to content
Snippets Groups Projects
Commit db5a5332 authored by Uma's avatar Uma
Browse files

Merge branch 'Client_Response_Controller' into 'master'

Fixes #1194 Client data responses

See merge request !496
parents 25de3cb7 9728f06f
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ window.app = (function () { ...@@ -40,7 +40,7 @@ window.app = (function () {
if (!data['success'] && data['error']['message']) { if (!data['success'] && data['error']['message']) {
aDeferred.resolve(new VtError(data['error'])); aDeferred.resolve(new VtError(data['error']));
return; return;
} else if (data['result']) { } else if (data['result'] && data['result'] !== null) {
data = data['result']; data = data['result'];
} }
} }
...@@ -73,7 +73,7 @@ window.app = (function () { ...@@ -73,7 +73,7 @@ window.app = (function () {
if (!response['success'] && response['error']['message']) { if (!response['success'] && response['error']['message']) {
aDeferred.resolve(new VtError(response['error'])); aDeferred.resolve(new VtError(response['error']));
return; return;
} else if (response['result']) { } else if (response['result'] && response['result'] !== null) {
response = response['result']; response = response['result'];
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment