Skip to content

Commit a80dae6

Browse files
fixed missing children error
1 parent 33a4848 commit a80dae6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/packages/lowcoder/src/comps/generators/uiCompBuilder.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,10 @@ const UIView = React.memo((props: {
299299
const restrictPaddingOnRotation = useMemo(() => Boolean(defaultChildren.restrictPaddingOnRotation), [defaultChildren.restrictPaddingOnRotation]);
300300
const rotationVal = useMemo(() => {
301301
if (isNotContainer) {
302-
return defaultChildren.style.children?.rotation?.valueAndMsg.value
302+
return defaultChildren.style?.children?.rotation?.valueAndMsg.value
303303
}
304304
return null;
305-
}, [isNotContainer, defaultChildren.style.children?.rotation?.valueAndMsg.value]);
305+
}, [isNotContainer, defaultChildren.style?.children?.rotation?.valueAndMsg.value]);
306306
const boxShadowVal = useMemo(() => {
307307
if (isNotContainer) {
308308
return defaultChildren.style?.children?.boxShadow?.valueAndMsg?.value;

0 commit comments

Comments
 (0)