File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -980,12 +980,12 @@ export function updateCheckedInFlatData<T extends Record<Id, any>>(
980
980
let hasFalse = false
981
981
let hasNull = false
982
982
for ( const childId of childIds ) {
983
+ // must loop all, must call walk on every child
983
984
let t = walk ( childId )
984
985
if ( t === false ) {
985
986
hasFalse = true
986
987
} else if ( t === null ) {
987
988
hasNull = true
988
- break
989
989
} else {
990
990
hasTrue = true
991
991
}
@@ -1057,12 +1057,12 @@ export function updateCheckedInTreeData<T extends Record<Id, any>>(
1057
1057
let hasFalse = false
1058
1058
let hasNull = false
1059
1059
for ( const childId of childIds ) {
1060
+ // must loop all, must call walk on every child
1060
1061
let t = walk ( childId )
1061
1062
if ( t === false ) {
1062
1063
hasFalse = true
1063
1064
} else if ( t === null ) {
1064
1065
hasNull = true
1065
- break
1066
1066
} else {
1067
1067
hasTrue = true
1068
1068
}
You can’t perform that action at this time.
0 commit comments