mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-13 02:58:59 +08:00
fix empty mind map issue (#1991)
### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
a74c0ccce0
commit
2302a6baba
@ -105,6 +105,9 @@ class MindMapExtractor:
|
|||||||
for i, _ in enumerate(threads):
|
for i, _ in enumerate(threads):
|
||||||
res.append(_.result())
|
res.append(_.result())
|
||||||
|
|
||||||
|
if not res:
|
||||||
|
return MindMapResult(output={"root":{}})
|
||||||
|
|
||||||
merge_json = reduce(self._merge, res)
|
merge_json = reduce(self._merge, res)
|
||||||
if len(merge_json.keys()) > 1:
|
if len(merge_json.keys()) > 1:
|
||||||
keyset = set(
|
keyset = set(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user