diff --git a/src/js/media/views/uploader/status.js b/src/js/media/views/uploader/status.js index a21c278395..86c538b833 100644 --- a/src/js/media/views/uploader/status.js +++ b/src/js/media/views/uploader/status.js @@ -96,9 +96,11 @@ UploaderStatus = View.extend(/** @lends wp.media.view.UploaderStatus.prototype * return attachment.get('uploading'); }); - this.$index.text( index + 1 ); - this.$total.text( queue.length ); - this.$filename.html( active ? this.filename( active.get('filename') ) : '' ); + if ( this.$index && this.$total && this.$filename ) { + this.$index.text( index + 1 ); + this.$total.text( queue.length ); + this.$filename.html( active ? this.filename( active.get('filename') ) : '' ); + } }, /** * @param {string} filename