|
@@ -89,7 +89,7 @@ export function removeOldPreviousMarkResult() {
|
|
const i = store.markResults.findIndex(
|
|
const i = store.markResults.findIndex(
|
|
(s) => s.libraryId === libraryId && s.studentId === studentId
|
|
(s) => s.libraryId === libraryId && s.studentId === studentId
|
|
);
|
|
);
|
|
- if (i > 0) store.markResults.splice(i, 1);
|
|
|
|
|
|
+ if (i >= 0) store.markResults.splice(i, 1);
|
|
}
|
|
}
|
|
|
|
|
|
for (const task of store.historyTasks) {
|
|
for (const task of store.historyTasks) {
|
|
@@ -106,7 +106,7 @@ export function removeCurrentMarkResult() {
|
|
const i = store.markResults.findIndex(
|
|
const i = store.markResults.findIndex(
|
|
(s) => s.libraryId === libraryId && s.studentId === studentId
|
|
(s) => s.libraryId === libraryId && s.studentId === studentId
|
|
);
|
|
);
|
|
- if (i > 0) store.markResults.splice(i, 1);
|
|
|
|
|
|
+ if (i >= 0) store.markResults.splice(i, 1);
|
|
}
|
|
}
|
|
|
|
|
|
clearMarkResultFromTask(store.currentTask);
|
|
clearMarkResultFromTask(store.currentTask);
|