Api: Fix missing country returned object directly instead of Promise

Fixes JS error loading date widgets in registration
This commit is contained in:
nathan 2023-10-16 09:42:28 -06:00
parent a84dd3d34b
commit 173b9bdfda

View File

@ -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')