Skip to content

Commit e6dc03b

Browse files
committed
update
1 parent 343c1ff commit e6dc03b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/controller/TreeViewController.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,10 @@ class TreeViewController implements Disposable {
483483
const showLockedFlag: boolean = isShowLocked();
484484
const useEndpointTranslation: boolean = isUseEndpointTranslation();
485485
const result: string = await executeService.getAllProblems(showLockedFlag, useEndpointTranslation);
486-
const all_problem_info = JSON.parse(result);
486+
let all_problem_info = JSON.parse(result);
487+
if (!showLockedFlag) {
488+
all_problem_info = all_problem_info.filter((p) => !p.locked);
489+
}
487490
const problems: IProblem[] = [];
488491
const AllScoreData = treeDataService.getScoreData();
489492
// 增加直接在线获取分数数据

0 commit comments

Comments
 (0)