mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
core&ui: bug fixes
This commit is contained in:
6 files changed
+10
-8
No files matched your search
@@ -211,7 +211,7 @@ export class ContestProblemListHandler extends ContestDetailBaseHandler {
|
||||
if (contest.isDone(this.tdoc) && canViewRecord) {
|
||||
const correction = await problem.getListStatus(domainId, this.user._id, this.tdoc.pids);
|
||||
for (const pid in correction) {
|
||||
if (this.tsdoc.detail[pid]?.rid === correction[pid].rid) delete correction[pid];
|
||||
if (this.tsdoc.detail?.[pid]?.rid === correction[pid].rid) delete correction[pid];
|
||||
}
|
||||
rids.push(...Object.values(correction).map((i) => i.rid));
|
||||
this.response.body.correction = correction;
|
||||
|
||||
Reference in new issue
Block a user