mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
fix not translated quick add
caused by _callback not waiting for promise
This commit is contained in:
parent
d3d0216a39
commit
6c3df5ad8b
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
});
|
||||
|
||||
});
|
Loading…
Reference in New Issue
Block a user