diff --git a/app/assets/javascripts/discourse/lib/plugin-api.js.es6 b/app/assets/javascripts/discourse/lib/plugin-api.js.es6 index 17e1456dea7..dccd781db92 100644 --- a/app/assets/javascripts/discourse/lib/plugin-api.js.es6 +++ b/app/assets/javascripts/discourse/lib/plugin-api.js.es6 @@ -539,7 +539,11 @@ class PluginApi { * }) */ addNavigationBarItem(item) { - addNavItem(item); + if (!item["name"]) { + console.warn("A 'name' is required when adding a Navigation Bar Item.", item); + } else { + addNavItem(item); + } } }