This commit is contained in:
rizrmd 2024-05-19 18:24:20 +07:00
parent 0ce1d627d9
commit e1be32333e
9 changed files with 8 additions and 8 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -66,9 +66,7 @@ export const devItem = (
if (item.component?.props) {
const result: Record<string, PropVal> = {};
for (const [k, v] of Object.entries(item.component.props)) {
if (v.value === v.valueBuilt) {
result[k] = JSON.parse(v.value);
} else if (v.meta?.type === "content-element") {
if (v.content) {
const content = mitem
.get("component")
?.get("props")
@ -86,6 +84,8 @@ export const devItem = (
value: null as any,
};
}
} else if (v.value === v.valueBuilt) {
result[k] = JSON.parse(v.value);
} else {
result[k] = {
mode: "raw",