Skip to content

Commit

Permalink
Rebuild scripts after changes from #780
Browse files Browse the repository at this point in the history
  • Loading branch information
goldenapples committed Jan 16, 2019
1 parent 9afcb20 commit 4fef02d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js-tests/build/specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@ var editAttributeField = Backbone.View.extend( {
// Ensure default value for select field.
if ( 'select' === data.type && '' === this.model.get( 'value' ) && ! _.findWhere( data.options, { value: '' } ) ) {
var firstVisibleOption = _.first( data.options );
if ( 'undefined' !== typeof firstVisibleOption.value ) {
if ( firstVisibleOption && 'undefined' !== typeof firstVisibleOption.value ) {
this.setValue( firstVisibleOption.value );
data.value = firstVisibleOption.value;
}
Expand Down
2 changes: 1 addition & 1 deletion js/build/shortcode-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ var editAttributeField = Backbone.View.extend( {
// Ensure default value for select field.
if ( 'select' === data.type && '' === this.model.get( 'value' ) && ! _.findWhere( data.options, { value: '' } ) ) {
var firstVisibleOption = _.first( data.options );
if ( 'undefined' !== typeof firstVisibleOption.value ) {
if ( firstVisibleOption && 'undefined' !== typeof firstVisibleOption.value ) {
this.setValue( firstVisibleOption.value );
data.value = firstVisibleOption.value;
}
Expand Down

0 comments on commit 4fef02d

Please sign in to comment.