mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: add null check
This commit is contained in:
1 parent
105608558f
commit
d5e67de7ad
4 files changed
+4
-9
No files matched your search
@@ -247,7 +247,7 @@ export class ProblemModel {
|
||||
const l = {};
|
||||
const ddocs = await Promise.all(Object.keys(parsed).map((i) => domain.get(i)));
|
||||
const f = ddocs.filter((i) => !(
|
||||
i._id === domainId
|
||||
i?._id === domainId
|
||||
|| i?.share === '*'
|
||||
|| (`,${(i?.share || '').replace(/,/g, ',').split(',').map((q) => q.trim()).join(',')},`).includes(`,${domainId},`)
|
||||
));
|
||||
|
||||
Reference in new issue
Block a user