mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
fix mind map bug (#1934)
### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -113,7 +113,7 @@ class MindMapExtractor:
|
||||
"children": [{"id": self._key(k), "children": self._be_children(v, keyset)} for k, v in
|
||||
merge_json.items() if isinstance(v, dict) and self._key(k)]}
|
||||
else:
|
||||
k = self._key(list(self._be_children.keys())[0])
|
||||
k = self._key(list(merge_json.keys())[0])
|
||||
merge_json = {"id": k, "children": self._be_children(list(merge_json.items())[0][1], set([k]))}
|
||||
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user