fix not translated quick add

caused by _callback not waiting for promise
This commit is contained in:
ralf 2022-08-22 14:24:22 +02:00
parent d3d0216a39
commit 6c3df5ad8b

View File

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