ui: fix auto subtask (#557)

This commit is contained in:
panda authored and GitHub committed 2023-04-11 16:48:59 +08:00
1 parent 45f819512d
commit 41a20bddbe
1 file changed
+1 -1
@@ -113,7 +113,7 @@ const page = new NamedPage('problem_config', () => {
delete state.config.cases;
delete state.config.score;
}
if (state.config.subtasks) return;
if (state.config.subtasks?.length) return;
const testdata = (state.testdata || []).map((i) => i.name);
unsubscribe();
const subtasks = readSubtasksFromFiles(testdata, state.config);