fix: get models in cloning

This commit is contained in:
jialin
2026-02-10 11:33:24 +08:00
parent 8779b79bbf
commit 9418e5b635
6 changed files with 14 additions and 14 deletions
@@ -4,12 +4,12 @@ import { maasProviderType } from '.';
interface FormContextProps {
providerType?: maasProviderType;
action?: PageActionType;
action: PageActionType;
currentData?: any;
id?: number;
}
const FormContext = createContext<FormContextProps>({});
const FormContext = createContext<FormContextProps>({} as FormContextProps);
export const useFormContext = () => {
const context = useContext(FormContext);