fixing string

This commit is contained in:
rizky 2024-08-08 01:43:04 -07:00
parent 5022096c06
commit 55801d62fb
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ export const FormatValue: FC<{
...JSON.parse(e.value), ...JSON.parse(e.value),
checked: e.checked.map((ex: any) => { checked: e.checked.map((ex: any) => {
if (typeof ex === "string") { if (typeof ex === "string") {
return JSON.parse(e.value); return JSON.parse(ex);
} }
try { try {
return JSON.parse(ex["value"]); return JSON.parse(ex["value"]);