core: fix problem count

This commit is contained in:
undefined committed 2023-12-15 11:35:51 +08:00
1 parent 27ce9ab075
commit fdb668003b
1 file changed
+1 -2
+1 -2
View File
@@ -194,8 +194,7 @@ export class ProblemMainHandler extends Handler {
pcount = pcount - count + pdocs.length;
}
}
// some problems are hidden and cannot be viewed by current user
if (pcount > pdocs.length) pcount = pdocs.length;
if (text && pcount > pdocs.length) pcount = pdocs.length;
if (this.user.hasPriv(PRIV.PRIV_USER_PROFILE)) {
const domainIds = Array.from(new Set(pdocs.map((i) => i.domainId)));
await Promise.all(