Skip to content

Commit 756cc95

Browse files
committed
file-tree: fix spurious null ck_kinds due to unready basic
1 parent 4eec595 commit 756cc95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

os-checks/pages/file-tree.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ function lock_filters(): boolean {
206206
watch(
207207
() => ({
208208
pkg: selected.pkg, feat: selected.features,
209-
kind: selected.kind, ck: selected.checker, g: got.value
209+
kind: selected.kind, ck: selected.checker,
210+
g: got.value, b: basic.value
210211
}),
211212
({ pkg, feat, kind, ck, g }, old) => {
212213
if (old.g !== g) return switch_got(g);
@@ -217,6 +218,7 @@ watch(
217218
Dropdown.update_by_features(feat, val);
218219
Dropdown.update_by_pkg(pkg, val);
219220
221+
// get_ck_kinds relies on basic: if basic is not ready, spurious null is got
220222
const ck_kinds = get_ck_kinds(ck);
221223
if (ck_kinds) Dropdown.update_by_checker(ck_kinds, val);
222224

0 commit comments

Comments
 (0)