diff --git a/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 b/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 index ccc5a82e959..29296e2bfe4 100644 --- a/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 +++ b/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 @@ -272,6 +272,7 @@ export default createWidget("topic-admin-menu", { "ul", buttons .concat(extraButtons) + .filter(Boolean) .map(b => this.attach("admin-menu-button", b)) ) ];