diff --git a/resources/skins.minerva.scripts/cleanuptemplates.js b/resources/skins.minerva.scripts/cleanuptemplates.js index 18ec12d..42819d6 100644 --- a/resources/skins.minerva.scripts/cleanuptemplates.js +++ b/resources/skins.minerva.scripts/cleanuptemplates.js @@ -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 ); + } } } );