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:
jdlrobson 2018-07-09 14:31:46 -07:00 committed by Jdlrobson
parent 7032d4ff2f
commit 20e3bbd28f
1 changed files with 6 additions and 1 deletions

View File

@ -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 );
}
}
} );