diff --git a/packages/ui-default/pages/problem_config.page.tsx b/packages/ui-default/pages/problem_config.page.tsx index dac783dee..431894f6a 100644 --- a/packages/ui-default/pages/problem_config.page.tsx +++ b/packages/ui-default/pages/problem_config.page.tsx @@ -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);