Skip to content

Commit

Permalink
fix: change command order and remove waste condition
Browse files Browse the repository at this point in the history
  • Loading branch information
unvalley committed Oct 10, 2022
1 parent 1688368 commit 178799f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 4 additions & 4 deletions util/gh-pages/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -443,15 +443,15 @@ <h1>Clippy Lints</h1>
</label>
</li>
<li class="checkbox">
<label ng-click="toggleGroups(false)">
<label ng-click="resetGroupsToDefault()">
<input type="checkbox" class="invisible" />
None
Default
</label>
</li>
<li class="checkbox">
<label ng-click="resetGroupsToDefault()">
<label ng-click="toggleGroups(false)">
<input type="checkbox" class="invisible" />
Default
None
</label>
</li>
<li role="separator" class="divider"></li>
Expand Down
4 changes: 1 addition & 3 deletions util/gh-pages/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,7 @@
$scope.resetGroupsToDefault = function () {
const groups = $scope.groups;
for (const [key, value] of Object.entries(GROUPS_FILTER_DEFAULT)) {
if (groups.hasOwnProperty(key)) {
groups[key] = value;
}
groups[key] = value;
}
};

Expand Down

0 comments on commit 178799f

Please sign in to comment.