mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix problem count
This commit is contained in:
1 file changed
+1
-2
@@ -194,8 +194,7 @@ export class ProblemMainHandler extends Handler {
|
|||||||
pcount = pcount - count + pdocs.length;
|
pcount = pcount - count + pdocs.length;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// some problems are hidden and cannot be viewed by current user
|
if (text && pcount > pdocs.length) pcount = pdocs.length;
|
||||||
if (pcount > pdocs.length) pcount = pdocs.length;
|
|
||||||
if (this.user.hasPriv(PRIV.PRIV_USER_PROFILE)) {
|
if (this.user.hasPriv(PRIV.PRIV_USER_PROFILE)) {
|
||||||
const domainIds = Array.from(new Set(pdocs.map((i) => i.domainId)));
|
const domainIds = Array.from(new Set(pdocs.map((i) => i.domainId)));
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
|
|||||||
Reference in new issue
Block a user