mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-09 16:35:02 +02:00
fix not translated quick add
caused by _callback not waiting for promise
This commit is contained in:
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
});
|
||||
|
||||
});
|
Reference in New Issue
Block a user