Improve sub-ref check to avoid false positives

Bug: T376242
Change-Id: If922dbd52ceb9b1a7973fececa2d062a043f8191
This commit is contained in:
WMDE-Fisch 2024-10-02 07:41:13 +02:00
parent 1be72de7bb
commit d478955777

View file

@ -29,7 +29,7 @@ ve.ui.MWReferenceResultWidget = function VeUiMWReferenceResultWidget( config ) {
this.$element this.$element
.addClass( 've-ui-mwReferenceResultWidget' ); .addClass( 've-ui-mwReferenceResultWidget' );
if ( item.reference.extendsRef !== undefined ) { if ( item.reference.extendsRef ) {
this.$element.addClass( 've-ui-mwReferenceResultWidget-sub' ); this.$element.addClass( 've-ui-mwReferenceResultWidget-sub' );
} }