File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Directory/Model/ResourceModel/Country
Ui/view/base/web/js/form/element Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ private function addDefaultCountryToOptions(array &$options)
328328
329329 foreach ($ options as $ key => $ option ) {
330330 if (isset ($ defaultCountry [$ option ['value ' ]])) {
331- $ options [$ key ]['is_default ' ] = $ defaultCountry [$ option ['value ' ]];
331+ $ options [$ key ]['is_default ' ] = ! empty ( $ defaultCountry [$ option ['value ' ]]) ;
332332 }
333333 }
334334 }
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ define([
4949
5050 if ( ! this . value ( ) ) {
5151 defaultCountry = _ . filter ( result , function ( item ) {
52- return item [ 'is_default' ] && item [ 'is_default' ] . includes ( value ) ;
52+ return item [ 'is_default' ] && _ . contains ( item [ 'is_default' ] , value ) ;
5353 } ) ;
5454
5555 if ( defaultCountry . length ) {
You can’t perform that action at this time.
0 commit comments