@@ -1099,24 +1099,24 @@ export const generateStylesForSectionBackground = ( {
1099
1099
: undefined ;
1100
1100
styles [ '--smb-section--background-text-top' ] =
1101
1101
! ! backgroundText ?. position ?. top &&
1102
- backgroundText . position . top . match ( / ^ \d + $ / )
1103
- ? `${ backgroundText . position . top } px`
1104
- : backgroundText . position . top ;
1102
+ backgroundText ? .position ? .top . match ( / ^ \d + $ / )
1103
+ ? `${ backgroundText ? .position ? .top } px`
1104
+ : backgroundText ? .position ? .top ;
1105
1105
styles [ '--smb-section--background-text-right' ] =
1106
1106
! ! backgroundText ?. position ?. right &&
1107
1107
backgroundText . position . right . match ( / ^ \d + $ / )
1108
- ? `${ backgroundText . position . right } px`
1109
- : backgroundText . position . right ;
1108
+ ? `${ backgroundText ? .position ? .right } px`
1109
+ : backgroundText ? .position ? .right ;
1110
1110
styles [ '--smb-section--background-text-bottom' ] =
1111
1111
! ! backgroundText ?. position ?. bottom &&
1112
- backgroundText . position . bottom . match ( / ^ \d + $ / )
1113
- ? `${ backgroundText . position . bottom } px`
1114
- : backgroundText . position . bottom ;
1112
+ backgroundText ? .position ? .bottom . match ( / ^ \d + $ / )
1113
+ ? `${ backgroundText ? .position ? .bottom } px`
1114
+ : backgroundText ? .position ? .bottom ;
1115
1115
styles [ '--smb-section--background-text-left' ] =
1116
1116
! ! backgroundText ?. position ?. left &&
1117
- backgroundText . position . left . match ( / ^ \d + $ / )
1118
- ? `${ backgroundText . position . left } px`
1119
- : backgroundText . position . left ;
1117
+ backgroundText ? .position ? .left . match ( / ^ \d + $ / )
1118
+ ? `${ backgroundText ? .position ? .left } px`
1119
+ : backgroundText ? .position ? .left ;
1120
1120
}
1121
1121
1122
1122
return styles ;
0 commit comments