MWImageNode: Skip empty change descriptions

As in parent method.

Change-Id: I320d5d7a8b2f5f7c7e2715c95cbc943533c8b335
This commit is contained in:
Ed Sanders 2022-05-19 18:00:13 +01:00 committed by Bartosz Dziewoński
parent fb1ed9e700
commit c64f5a78cf

View file

@ -170,7 +170,9 @@ ve.dm.MWImageNode.static.describeChanges = function ( attributeChanges, attribut
continue;
}
var change = this.describeChange( key, attributeChanges[ key ] );
descriptions.push( change );
if ( change ) {
descriptions.push( change );
}
}
}
return descriptions;