Skip to content

Commit 1342cdd

Browse files
fix: build
1 parent 1d44379 commit 1342cdd

File tree

2 files changed

+854
-12
lines changed

2 files changed

+854
-12
lines changed

libs/frontend/application/renderer/src/store/runtime-element-prop.model.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,15 +190,18 @@ export class RuntimeElementPropsModel
190190
const { evaluatedProps } = runtimeElement.runtimeProps
191191
const evaluatedChildrenProp = evaluatedProps['children']
192192
const childrenProp = this.element.props.get('children')
193-
const isTypedProperty = childrenProp && isTypedProp(childrenProp)
193+
const isTypedProperty = !childrenProp || isTypedProp(childrenProp)
194194

195195
// In case if the children prop is not a typed property, e.g. Markdown (string),
196196
// or AntDesignFormList (function) - return the evaluated children prop as-is.
197197
if (!isTypedProperty) {
198198
return evaluatedChildrenProp
199199
}
200200

201-
const isCodeMirrorType = childrenProp.kind === ITypeKind.CodeMirrorType
201+
const isCodeMirrorType =
202+
childrenProp &&
203+
isTypedProp(childrenProp) &&
204+
childrenProp.kind === ITypeKind.CodeMirrorType
202205

203206
const Wrapper = isCodeMirrorType
204207
? CodeMirrorEditorWrapper

0 commit comments

Comments
 (0)