mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-27 05:11:41 +02: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)));
|
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…
x
Reference in New Issue
Block a user