Media: Use consistent mirroring check in media views.

Change the mirroring property verification method to be consistent with other usages across models and attachments, since we don't care whether it's assigned directly on inherited.

Props MMDeveloper, SergeyBiryukov.
Fixes .


git-svn-id: https://develop.svn.wordpress.org/trunk@52806 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Joe Dolson 2022-02-27 00:54:57 +00:00
parent 69a4f35a7b
commit 5445ae3ce0

@ -130,7 +130,7 @@ AttachmentsBrowser = View.extend(/** @lends wp.media.view.AttachmentsBrowser.pro
mediaFoundHasMoreResultsMessage = __( 'Number of media items displayed: %d. Scroll the page for more results.' );
}
if ( this.collection.hasOwnProperty('mirroring') && this.collection.mirroring.args.s ) {
if ( this.collection.mirroring && this.collection.mirroring.args.s ) {
count = this.collection.length;
if ( 0 === count ) {