Skip to content

Commit

Permalink
KAD-4008 updated some conditional checks
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbert-hernandez committed Jan 17, 2025
1 parent 26d3628 commit e2120a8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/blocks/infobox/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -2761,8 +2761,8 @@ function KadenceInfoBox(props) {
onControl={(value) => setMediaBorderControl(value)}
min={0}
max={
mediaStyle[0].borderWidthUnit === 'px' ||
typeof mediaStyle[0].borderWidthUnit === 'undefined'
mediaStyle[0]?.borderWidthUnit === 'px' ||
mediaStyle[0]?.borderWidthUnit === 'undefined'
? 40
: 12
}
Expand All @@ -2781,8 +2781,8 @@ function KadenceInfoBox(props) {
step={1}
min={0}
max={
mediaStyle[0].borderRadiusUnit === 'px' ||
typeof mediaStyle[0].borderRadiusUnit === 'undefined'
mediaStyle[0]?.borderRadiusUnit === 'px' ||
mediaStyle[0]?.borderRadiusUnit === 'undefined'
? 200
: 12
}
Expand Down Expand Up @@ -2985,8 +2985,8 @@ function KadenceInfoBox(props) {
onControl={(value) => setMediaBorderControl(value)}
min={0}
max={
mediaStyle[0].borderWidthUnit === 'px' ||
typeof mediaStyle[0].borderWidthUnit === 'undefined'
mediaStyle[0]?.borderWidthUnit === 'px' ||
mediaStyle[0]?.borderWidthUnit === 'undefined'
? 40
: 12
}
Expand All @@ -3006,8 +3006,8 @@ function KadenceInfoBox(props) {
step={1}
min={0}
max={
mediaStyle[0].borderRadiusUnit === 'px' ||
typeof mediaStyle[0].borderRadiusUnit === 'undefined'
mediaStyle[0]?.borderRadiusUnit === 'px' ||
mediaStyle[0]?.borderRadiusUnit === 'undefined'
? 200
: 12
}
Expand Down Expand Up @@ -3229,8 +3229,8 @@ function KadenceInfoBox(props) {
onControl={(value) => setMediaBorderControl(value)}
min={0}
max={
mediaStyle[0].borderWidthUnit === 'px' ||
typeof mediaStyle[0].borderWidthUnit === 'undefined'
mediaStyle[0]?.borderWidthUnit === 'px' ||
mediaStyle[0]?.borderWidthUnit === 'undefined'
? 40
: 12
}
Expand All @@ -3249,8 +3249,8 @@ function KadenceInfoBox(props) {
step={1}
min={0}
max={
mediaStyle[0].borderRadiusUnit === 'px' ||
typeof mediaStyle[0].borderRadiusUnit === 'undefined'
mediaStyle[0]?.borderRadiusUnit === 'px' ||
mediaStyle[0]?.borderRadiusUnit === 'undefined'
? 200
: 12
}
Expand Down

0 comments on commit e2120a8

Please sign in to comment.