Skip to content

Commit

Permalink
Fix tab selection event data
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosthe19916 committed Feb 13, 2024
1 parent ff44f80 commit 6ccddc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spog/ui/src/pages/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ pub fn search(props: &SearchProperties) -> Html {
let onselect = use_callback((analytics.clone(), tab.clone()), |index, (analytics, tab)| {
analytics.track(AnalyticEvents {
obj_name: ObjectNameAnalytics::SearchPage,
action: ActionAnalytics::SelectTab(format!("{}", *tab.clone())),
action: ActionAnalytics::SelectTab(format!("{}", &index)),
});

tab.set(index)
Expand Down

0 comments on commit 6ccddc9

Please sign in to comment.