mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-03 06:17:29 +08:00
Fix: Unable to navigate from the agent list page to the compilation editing page. (#17460)
This commit is contained in:
@@ -212,7 +212,7 @@ export const BedrockInstanceCard = forwardRef<
|
||||
useEffect(() => {
|
||||
// Reset form when initial values change (e.g. instance details load).
|
||||
form.reset(initialValues);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
// oxlint-disable-next-line react/exhaustive-deps
|
||||
}, [initialValues]);
|
||||
|
||||
const authMode = useWatch({ control: form.control, name: 'auth_mode' });
|
||||
|
||||
@@ -704,7 +704,7 @@ export function useFormFields(
|
||||
{}) as Record<string, any>;
|
||||
void _ignored;
|
||||
return rest;
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
// oxlint-disable-next-line react/exhaustive-deps
|
||||
}, [defaultValuesKey]);
|
||||
|
||||
return { formFields, formDefaultValues };
|
||||
|
||||
@@ -188,7 +188,7 @@ export function useModelsCatalog({
|
||||
if (!credsReady) return;
|
||||
hasAutoFetchedRef.current = true;
|
||||
handleListModels();
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
// oxlint-disable-next-line react/exhaustive-deps
|
||||
}, [providerName, instanceName, hideActions, credsReady]);
|
||||
|
||||
// Mark `hasFetched` true once the per-instance query resolves — even if
|
||||
|
||||
@@ -239,7 +239,7 @@ export const SoMarkInstanceCard = forwardRef<
|
||||
useEffect(() => {
|
||||
// Reset form when initial values change (e.g. instance details load).
|
||||
form.reset(initialValues);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
// oxlint-disable-next-line react/exhaustive-deps
|
||||
}, [initialValues]);
|
||||
|
||||
const imageFormatOptions = useMemo(
|
||||
|
||||
@@ -156,7 +156,7 @@ export const useListModelsPicker = ({
|
||||
];
|
||||
}
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
// oxlint-disable-next-line react/exhaustive-deps
|
||||
}, [visible, editMode, viewMode]);
|
||||
|
||||
// Triggered by ToggleList's onOpenChange — fires the API call with the
|
||||
|
||||
Reference in New Issue
Block a user