fix: change command order and remove waste condition

This commit is contained in:
unvalley 2022-10-10 18:00:15 +09:00
parent 1688368b33
commit 178799f9c1
2 changed files with 7 additions and 9 deletions

View File

@ -442,18 +442,18 @@ Otherwise, have a great day =^.^=
All
</label>
</li>
<li class="checkbox">
<label ng-click="toggleGroups(false)">
<input type="checkbox" class="invisible" />
None
</label>
</li>
<li class="checkbox">
<label ng-click="resetGroupsToDefault()">
<input type="checkbox" class="invisible" />
Default
</label>
</li>
<li class="checkbox">
<label ng-click="toggleGroups(false)">
<input type="checkbox" class="invisible" />
None
</label>
</li>
<li role="separator" class="divider"></li>
<li class="checkbox" ng-repeat="(group, enabled) in groups">
<label class="text-capitalize">

View File

@ -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;
}
};