Fix: loopitem None issue. (#12166)

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu
2025-12-24 17:22:31 +08:00
committed by GitHub
parent 1e9374a373
commit 977962fdfe
3 changed files with 7 additions and 0 deletions

View File

@ -701,6 +701,8 @@ class DocumentService(CommonService):
v = [v]
for vv in v:
if vv not in meta[k]:
if isinstance(vv, list) or isinstance(vv, dict):
continue
meta[k][vv] = []
meta[k][vv].append(doc_id)
return meta