Skip to content

Commit

Permalink
remove archived filter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Nov 15, 2024
1 parent 84a0ee2 commit 8eee166
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/components/ChallengePane/ChallengePane.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const ShowChallengeListTogglesInternal = (props) => {
<input
type="checkbox"
className="mr-checkbox-toggle mr-mr-1 mr-mb-6 mr-ml-4"
checked={!props.filteringGlobal}
checked={props.filteringGlobal}
onChange={() => {
props.setSearchFilters({ filterGlobal: !props.filteringGlobal })
}}

Check warning on line 52 in src/components/ChallengePane/ChallengePane.jsx

View check run for this annotation

Codecov / codecov/patch

src/components/ChallengePane/ChallengePane.jsx#L51-L52

Added lines #L51 - L52 were not covered by tests
Expand Down Expand Up @@ -127,7 +127,7 @@ export class ChallengePane extends Component {

render() {
const showingArchived = this.props.history.location.search.includes("archived=true");
const filteringGlobal = this.props.history.location.search.includes("filterGlobal") ? this.props.history.location.search.includes("filterGlobal=true") : true;
const filteringGlobal = this.props.history.location.search.includes("filterGlobal=true")
const challengeStatus = [ChallengeStatus.ready,
ChallengeStatus.partiallyLoaded,
ChallengeStatus.none,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ import { challengePassesLocationFilter }
from '../../../services/Challenge/ChallengeLocation/ChallengeLocation'
import { challengePassesGlobalFilter }
from '../../../services/Challenge/ChallengeGlobal/ChallengeGlobal'
import { challengePassesArchivedFilter }
from '../../../services/Challenge/ChallengeArchived/ChallengeArchived'
import { challengePassesProjectFilter }
from '../../../services/Challenge/ChallengeProject/ChallengeProject'

const allFilters = [
challengePassesGlobalFilter,challengePassesArchivedFilter,
challengePassesGlobalFilter,
challengePassesDifficultyFilter,
challengePassesKeywordFilter,
challengePassesCategorizationKeywordsFilter,
Expand Down
7 changes: 0 additions & 7 deletions src/services/Challenge/ChallengeArchived/ChallengeArchived.js

This file was deleted.

0 comments on commit 8eee166

Please sign in to comment.