Skip to content

Commit

Permalink
ThemeProvider: fix nullref
Browse files Browse the repository at this point in the history
  • Loading branch information
henon committed Aug 5, 2022
1 parent 6992dcc commit 6cbfa9e
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -22,7 +22,7 @@ public class BaseMudThemeProvider : ComponentBase
[Parameter]
public bool DefaultScrollbar { get; set; }

#region Dark mode handeling
#region Dark mode handling

public BaseMudThemeProvider()
{
Expand Down Expand Up @@ -114,6 +114,8 @@ protected string BuildMudBlazorScrollbar()

protected virtual void GenerateTheme(StringBuilder theme)
{
if (Theme == null)
return;
var palette = _isDarkMode == false ? Theme.Palette : Theme.PaletteDark;

//Palette
Expand Down

0 comments on commit 6cbfa9e

Please sign in to comment.