Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix group refresh #1000

Merged
merged 4 commits into from
Nov 13, 2024
Merged

Fix group refresh #1000

merged 4 commits into from
Nov 13, 2024

Conversation

Falinor
Copy link
Collaborator

@Falinor Falinor commented Nov 12, 2024

No description provided.

@Falinor Falinor self-assigned this Nov 12, 2024
@Falinor Falinor requested a review from loicguillois November 12, 2024 16:46
Comment on lines -64 to -82
function trackNewFilter(changedFilters: HousingFilters, filterLabel: string) {
const filterEntry = Object.entries(changedFilters)[0];
const prevFilterEntry = Object.entries(filters).find(
(_) => _[0] === filterEntry[0],
);
const filterValues = filterEntry[1] as Array<string>;
const prevFilterValues = prevFilterEntry
? (prevFilterEntry[1] as Array<string>)
: [];
const newValues = filterValues.filter
? filterValues.filter((_) => prevFilterValues?.indexOf(_) === -1)
: [];
if (newValues.length) {
trackEvent({
category: TrackEventCategories.Filter,
action: TrackEventActions.Filter(filterLabel),
name: newValues.toString(),
value: establishment?.siren,
});
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suppression du code en rapport avec Matomo

@Falinor Falinor merged commit bf353d9 into main Nov 13, 2024
13 checks passed
@Falinor Falinor deleted the fix-group-refresh branch November 13, 2024 13:49
@Falinor Falinor restored the fix-group-refresh branch November 13, 2024 13:50
@Falinor Falinor deleted the fix-group-refresh branch November 13, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant