Skip to content

Commit

Permalink
chore: Tweak ternary to add clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
tofumatt committed Jul 11, 2018
1 parent eed2f1b commit d1f7062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core-blocks/audio/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class AudioEdit extends Component {
label={ __( 'Preload' ) }
value={ undefined !== preload ? preload : 'none' }
// `undefined` is required for the preload attribute to be unset.
onChange={ ( value ) => setAttributes( { preload: 'none' !== value ? value : undefined } ) }
onChange={ ( value ) => setAttributes( { preload: ( 'none' !== value ) ? value : undefined } ) }
options={ [
{ value: 'auto', label: __( 'Auto' ) },
{ value: 'metadata', label: __( 'Metadata' ) },
Expand Down

0 comments on commit d1f7062

Please sign in to comment.