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(() => {
|
useEffect(() => {
|
||||||
if (isEditor) {
|
if (isEditor) {
|
||||||
local.loaded = true;
|
local.loaded = true;
|
||||||
|
|
@ -103,7 +95,6 @@ export const TypeDropdown: FC<{
|
||||||
}
|
}
|
||||||
reload();
|
reload();
|
||||||
}, []);
|
}, []);
|
||||||
}
|
|
||||||
|
|
||||||
let value =
|
let value =
|
||||||
typeof arg.opt_get_value === "function"
|
typeof arg.opt_get_value === "function"
|
||||||
|
|
|
||||||
|
|
@ -48,13 +48,6 @@ export type FieldProp = {
|
||||||
label: string;
|
label: string;
|
||||||
desc?: string;
|
desc?: string;
|
||||||
props?: any;
|
props?: any;
|
||||||
load_trigger?: {
|
|
||||||
deps: any[];
|
|
||||||
on_change: (arg: {
|
|
||||||
fm: FMLocal;
|
|
||||||
where: any;
|
|
||||||
}) => Promise<{ where?: any; result?: any[] }>;
|
|
||||||
};
|
|
||||||
link: {
|
link: {
|
||||||
text:
|
text:
|
||||||
| string
|
| string
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue