File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/code/Magento/Bundle/view/base/web/js Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -388,10 +388,12 @@ define([
388
388
var isValid = true ,
389
389
qtyElem = bundleOption . data ( 'qtyField' ) ,
390
390
bundleOptionType = bundleOption . prop ( 'type' ) ,
391
- qtyValidator = typeof qtyElem . data ( 'validate' ) === 'object' ?
392
- qtyElem . data ( 'validate' ) [ 'validate-item-quantity' ] : '' ;
391
+ qtyValidator = qtyElem . data ( 'validate' ) &&
392
+ typeof qtyElem . data ( 'validate' ) [ 'validate-item-quantity' ] === 'object' ?
393
+ qtyElem . data ( 'validate' ) [ 'validate-item-quantity' ] : null ;
393
394
394
395
if ( [ 'radio' , 'select-one' ] . includes ( bundleOptionType ) &&
396
+ qtyValidator &&
395
397
( qtyElem . val ( ) < qtyValidator . minAllowed || qtyElem . val ( ) > qtyValidator . maxAllowed )
396
398
) {
397
399
isValid = false ;
You can’t perform that action at this time.
0 commit comments