Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoPavlinic98 committed Mar 26, 2024
1 parent b224a0a commit c572526
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions assets/js/media-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ jQuery(document).ready(function($) {
$input = get_media_field( $( this ), $settings_wrapper, 'input.media-upload-id' );
let $preview = get_media_field( $( this ), $settings_wrapper, 'img.media-upload-preview' );

$preview = $preview.length ? $preview : $settings_wrapper.find('img.media-upload-preview');

// We set multiple to false so only get one image from the uploader
let attachment = file_frame.state().get( 'selection' ).first().toJSON();

Expand Down

0 comments on commit c572526

Please sign in to comment.