Skip to content

fix: for issue #5056 #268

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

Open
wants to merge 1 commit into
base: listing-develop-sync
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/services/challenges.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { getService as getSubmissionsService } from './submissions';
export function getFilterUrl(backendFilter, frontFilter) {
const ff = _.clone(frontFilter);
// eslint-disable-next-line object-curly-newline
const { tags, tracks, types, groups } = ff;
const { tags, tracks, types, groups, events } = ff;
delete ff.tags;
delete ff.tracks;
delete ff.types;
Expand All @@ -42,10 +42,12 @@ export function getFilterUrl(backendFilter, frontFilter) {
}, []), val => `tracks[]=${val}`).join('&');
const ftypes = _.map(types, val => `types[]=${val}`).join('&');
const fgroups = _.map(groups, val => `groups[]=${val}`).join('&');
const fevents = _.map(events, val => `events[]=${val}`).join('&');
if (ftags.length > 0) urlFilter += `&${ftags}`;
if (ftracks.length > 0) urlFilter += `&${ftracks}`;
if (ftypes.length > 0) urlFilter += `&${ftypes}`;
if (fgroups.length > 9) urlFilter += `&${fgroups}`;
if (fevents > 0) urlFilter += `&${fevents}`;
else if (fgroups.length > 9) urlFilter += `&${fgroups}`;
return urlFilter;
}

Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy