fix
This commit is contained in:
parent
02564d8710
commit
ab03212230
|
|
@ -87,14 +87,6 @@ export const TypeDropdown: FC<{
|
|||
});
|
||||
};
|
||||
|
||||
if ((arg.load_trigger?.deps || []).length > 0 && !isEditor) {
|
||||
useEffect(
|
||||
() => {
|
||||
reload();
|
||||
},
|
||||
arg.load_trigger?.deps.map((e) => fm.data[e])
|
||||
);
|
||||
} else {
|
||||
useEffect(() => {
|
||||
if (isEditor) {
|
||||
local.loaded = true;
|
||||
|
|
@ -103,7 +95,6 @@ export const TypeDropdown: FC<{
|
|||
}
|
||||
reload();
|
||||
}, []);
|
||||
}
|
||||
|
||||
let value =
|
||||
typeof arg.opt_get_value === "function"
|
||||
|
|
|
|||
|
|
@ -48,13 +48,6 @@ export type FieldProp = {
|
|||
label: string;
|
||||
desc?: string;
|
||||
props?: any;
|
||||
load_trigger?: {
|
||||
deps: any[];
|
||||
on_change: (arg: {
|
||||
fm: FMLocal;
|
||||
where: any;
|
||||
}) => Promise<{ where?: any; result?: any[] }>;
|
||||
};
|
||||
link: {
|
||||
text:
|
||||
| string
|
||||
|
|
|
|||
Loading…
Reference in New Issue