mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-02 02:25:31 +08:00
Fix: metadata data synchronization issues; add memory tab in home page (#12368)
### What problem does this PR solve? fix: metadata data synchronization issues; add memory tab in home page ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -37,7 +37,8 @@ export function useHasParsedDocument(isEdit?: boolean) {
|
||||
export const useFetchKnowledgeConfigurationOnMount = (
|
||||
form: UseFormReturn<z.infer<typeof formSchema>, any, undefined>,
|
||||
) => {
|
||||
const { data: knowledgeDetails } = useFetchKnowledgeBaseConfiguration();
|
||||
const { data: knowledgeDetails, loading } =
|
||||
useFetchKnowledgeBaseConfiguration();
|
||||
|
||||
useEffect(() => {
|
||||
const parser_config = {
|
||||
@ -71,7 +72,7 @@ export const useFetchKnowledgeConfigurationOnMount = (
|
||||
form.reset(formValues);
|
||||
}, [form, knowledgeDetails]);
|
||||
|
||||
return knowledgeDetails;
|
||||
return { knowledgeDetails, loading };
|
||||
};
|
||||
|
||||
export const useSelectKnowledgeDetailsLoading = () =>
|
||||
|
||||
Reference in New Issue
Block a user