mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +08:00
ui: problemconfig: add testlib builtin checkers
This commit is contained in:
3 files changed
+65
-20
No files matched your search
@@ -28,7 +28,7 @@ export default function reducer(state = {
|
||||
for (const subtask of subtasks) {
|
||||
if (typeof subtask.id !== 'number') {
|
||||
for (let i = 1; ; i++) {
|
||||
if (!subtasks.find((s) => s.id === s)) {
|
||||
if (!subtasks.find((s) => s.id === i)) {
|
||||
subtask.id = i;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user