Fix for siteSettings is null

siteSettings can be null, with this change we can avoid an exception.
This commit is contained in:
Timendum 2018-01-30 10:51:38 +01:00 committed by GitHub
parent f17ff7168f
commit a16cae0342
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,7 +132,7 @@ const assignManager = {
// The container we have in the assignment map isn't present any more so lets remove it // The container we have in the assignment map isn't present any more so lets remove it
// then continue the existing load // then continue the existing load
if (!container) { if (siteSettings && !container) {
this.deleteContainer(siteSettings.userContextId); this.deleteContainer(siteSettings.userContextId);
return {}; return {};
} }