fix
This commit is contained in:
parent
55801d62fb
commit
6e0ba25f08
|
|
@ -18,9 +18,7 @@ export const FormatValue: FC<{
|
||||||
if (gen_fields) {
|
if (gen_fields) {
|
||||||
const gf = JSON.stringify(gen_fields);
|
const gf = JSON.stringify(gen_fields);
|
||||||
if (!fields_map.has(gf)) {
|
if (!fields_map.has(gf)) {
|
||||||
fields_map.set(
|
const result = gen_fields.map((e: any) => {
|
||||||
gf,
|
|
||||||
gen_fields.map((e: any) => {
|
|
||||||
if (typeof e === "string") {
|
if (typeof e === "string") {
|
||||||
return JSON.parse(e);
|
return JSON.parse(e);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -38,8 +36,8 @@ export const FormatValue: FC<{
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
);
|
fields_map.set(gf, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
const fields = fields_map.get(gf);
|
const fields = fields_map.get(gf);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue