Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When all types of contests (design, develepment, data science) are unselected the page should load all contests, but instead it loads it tries to search for and load no contests. It tries again over and over for a few minutes and eventually stops trying.
I added an if statement in the 'removeTracks' function to delete the 'tracks' field similar to what was done in the 'addTracks' function when all tracks are selected. In the comments in the code it said that selecting all tracks is the same as having no tracks field. So selecting no tracks should also be the same.
When all tracks are removed the tracks field becomes an empty array which seems to cause the problem. Deleting the tracks array (field) makes the other functions behave as they should and return all challenges.
local.topcoder.com/challenges?