mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? feat: Catching errors with IndentedTree #2247 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -494,7 +494,7 @@ export const useFetchMindMap = () => {
|
||||
mutationFn: async (params: IAskRequestBody) => {
|
||||
try {
|
||||
const ret = await chatService.getMindMap(params);
|
||||
return ret?.data?.data ?? [];
|
||||
return ret?.data?.data ?? {};
|
||||
} catch (error) {
|
||||
if (has(error, 'message')) {
|
||||
message.error(error.message);
|
||||
|
||||
Reference in New Issue
Block a user