Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
nhathoang989 committed Nov 8, 2023
1 parent c0924e3 commit fa2184a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/platform/mix.library/Services/MixThemeImportService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ public MixTenantSystemModel CurrentTenant
{
if (_currentTenant == null)
{
_currentTenant = _session.Get<MixTenantSystemModel>(MixRequestQueryKeywords.Tenant);
_currentTenant = _session?.Get<MixTenantSystemModel>(MixRequestQueryKeywords.Tenant) ?? new()
{
Id = 1
};
}
return _currentTenant;
}
Expand Down

0 comments on commit fa2184a

Please sign in to comment.