fix appending to a froozen object (#19003)
This commit is contained in:
@@ -53,7 +53,11 @@ export abstract class UmbPropertyEditorUiRteElementBase
|
||||
|
||||
const buildUpValue: Partial<UmbPropertyEditorRteValueType> = value ? { ...value } : {};
|
||||
buildUpValue.markup ??= '';
|
||||
buildUpValue.blocks ??= { layout: {}, contentData: [], settingsData: [], expose: [] };
|
||||
if (buildUpValue.blocks) {
|
||||
buildUpValue.blocks = { ...buildUpValue.blocks };
|
||||
} else {
|
||||
buildUpValue.blocks ??= { layout: {}, contentData: [], settingsData: [], expose: [] };
|
||||
}
|
||||
buildUpValue.blocks.layout ??= {};
|
||||
buildUpValue.blocks.contentData ??= [];
|
||||
buildUpValue.blocks.settingsData ??= [];
|
||||
|
||||
Reference in New Issue
Block a user