ui: fix problem_send result display

This commit is contained in:
undefined committed 2021-05-09 00:13:31 +08:00
1 parent ee693cf36e
commit 41c0b0c608
3 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ export default async function readYamlCases(cfg: Record<string, any> = {}, check
id: config.count,
});
}
} else if (cfg.subtasks) {
} else if (cfg.subtasks?.length) {
for (const subtask of cfg.subtasks) {
const cases = [];
for (const c of subtask.cases || []) {