From 658bbd8b28f1c020017664d2913a3d73d068cf02 Mon Sep 17 00:00:00 2001 From: antikalk Date: Wed, 13 May 2020 09:12:59 +0200 Subject: [PATCH] + set data to null if response data is not set --- www/helpers.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/helpers.js b/www/helpers.js index c930e67..66e20aa 100644 --- a/www/helpers.js +++ b/www/helpers.js @@ -293,6 +293,8 @@ module.exports = function init(global, jsUtil, cookieHandler, messages, base64, } if (!response.data) { + // return null as data if response data is not set + response.data = null; return success(response); }