diff --git a/api/js/jsapi/egw_lang.js b/api/js/jsapi/egw_lang.js index f614ef421d..46a3cf82ad 100644 --- a/api/js/jsapi/egw_lang.js +++ b/api/js/jsapi/egw_lang.js @@ -162,9 +162,8 @@ egw.extend('lang', egw.MODULE_GLOBAL, function() } const promise = Promise.all(jss.map((src) => import(src))); - return typeof _callback === 'function' ? promise.then(_callback.call(_context)) : promise; + return typeof _callback === 'function' ? promise.then(() => _callback.call(_context)) : promise; } }; -}); - +}); \ No newline at end of file