+ set data to null if response data is not set

This commit is contained in:
antikalk
2020-05-13 09:12:59 +02:00
parent a1e4be37d4
commit 658bbd8b28
+2
View File
@@ -293,6 +293,8 @@ module.exports = function init(global, jsUtil, cookieHandler, messages, base64,
} }
if (!response.data) { if (!response.data) {
// return null as data if response data is not set
response.data = null;
return success(response); return success(response);
} }