Skip to content

Commit

Permalink
Update hostsFn.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ClDaniel1 committed Apr 16, 2022
1 parent 4269583 commit 1d71f86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/hostsFn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const switchItemParentIsON = (
parent.on = on
} else if (parent.children) {
let parentOn = true
parent.children.map((item) => {
parent.children.forEach((item) => {
if (!item.on) {
parentOn = false
}
Expand Down Expand Up @@ -171,7 +171,7 @@ export const switchFolderChild = (
}

if (item.children) {
item.children.map((item) => {
item.children.forEach((item) => {
item.on = on
if (item.type == 'folder') {
item = switchFolderChild(item, on)
Expand Down

0 comments on commit 1d71f86

Please sign in to comment.