We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feabe50 commit 4a71e64Copy full SHA for 4a71e64
src/BootstrapBlazor/Components/Tab/Tab.razor.cs
@@ -602,15 +602,8 @@ private void AddTabItem(string url)
602
}
603
else
604
{
605
- var menu = GetMenuItem(url);
606
- if (menu != null)
607
- {
608
- SetTabItemParameters(menu.Text, menu.Icon, true, true);
609
- }
610
- else
611
612
- parameters.Add(nameof(TabItem.Text), url.Split("/").FirstOrDefault());
613
+ var menu = GetMenuItem(url) ?? new MenuItem() { Text = url.Split("/").FirstOrDefault() };
+ SetTabItemParameters(menu.Text, menu.Icon, true, true);
614
615
parameters.Add(nameof(TabItem.Url), url);
616
0 commit comments