Skip to content

Commit f911dce

Browse files
authored
Lowercase tab (#984)
1 parent bf0068a commit f911dce

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pgml-dashboard/src/components/component.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ macro_rules! component {
3737
};
3838
}
3939

40-
4140
pub use component;
4241

4342
// Render any string.

pgml-dashboard/src/components/navigation/tabs/tabs/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl Tabs {
2828
.tabs
2929
.into_iter()
3030
.map(|tab| {
31-
if tab.name() == name.to_string() {
31+
if tab.name().to_lowercase() == name.to_string().to_lowercase() {
3232
tab.active()
3333
} else {
3434
tab.inactive()

0 commit comments

Comments
 (0)