Don't render blank issues
If an extracted issue has no text, do not render it Bug: T199005 Change-Id: I18047492e891285ed3af113200d2909e178b8224
This commit is contained in:
parent
7032d4ff2f
commit
20e3bbd28f
|
@ -81,7 +81,12 @@
|
|||
|
||||
if ( $this.find( selector ).length === 0 ) {
|
||||
issue = extractMessage( $this );
|
||||
issues.push( issue );
|
||||
// Some issues after "extractMessage" has been run will have no text.
|
||||
// For example in Template:Talk header the table will be removed and no issue found.
|
||||
// These should not be rendered.
|
||||
if ( issue.text ) {
|
||||
issues.push( issue );
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
||||
|
|
Loading…
Reference in New Issue