mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-14 03:54:29 +01:00
Api: Fix missing country returned object directly instead of Promise
Fixes JS error loading date widgets in registration
This commit is contained in:
parent
a84dd3d34b
commit
173b9bdfda
@ -130,7 +130,7 @@ egw.extend('calendar', egw.MODULE_GLOBAL, function (_app, _wnd)
|
||||
// No country selected causes error, so skip if it's missing
|
||||
if (!egw || !egw.preference('country', 'common'))
|
||||
{
|
||||
return {};
|
||||
return Promise.resolve({});
|
||||
}
|
||||
|
||||
if (typeof _holiday_cache[year] === 'undefined')
|
||||
|
Loading…
Reference in New Issue
Block a user