This commit is contained in:
rizrmd 2024-08-08 08:50:20 +00:00
parent 55801d62fb
commit 6e0ba25f08
2 changed files with 22 additions and 24 deletions

View File

@ -18,9 +18,7 @@ export const FormatValue: FC<{
if (gen_fields) {
const gf = JSON.stringify(gen_fields);
if (!fields_map.has(gf)) {
fields_map.set(
gf,
gen_fields.map((e: any) => {
const result = gen_fields.map((e: any) => {
if (typeof e === "string") {
return JSON.parse(e);
} else {
@ -38,8 +36,8 @@ export const FormatValue: FC<{
}),
};
}
})
);
});
fields_map.set(gf, result);
}
const fields = fields_map.get(gf);