Skip to content

Commit 94bf797

Browse files
committed
Fixed a call to OnInitialized from inside the VersionLabel OnInitializedAsync
1 parent d0c9c49 commit 94bf797

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/AstroPanda.Blazor.Toolkit/Components/VersionLabel.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@
6060
if (versionAttr is not null)
6161
{
6262
var version = versionAttr.InformationalVersion;
63-
64-
if (string.IsNullOrWhiteSpace(version))
65-
version = "0.0.0";
66-
63+
64+
if (string.IsNullOrWhiteSpace(version))
65+
version = "0.0.0";
66+
6767
_version = version.Split('+').FirstOrDefault() ?? "0.0.0";
6868
}
6969
}
@@ -72,6 +72,6 @@
7272
break;
7373
}
7474

75-
base.OnInitialized();
75+
await base.OnInitializedAsync();
7676
}
7777
}

0 commit comments

Comments
 (0)