diff --git a/assets/javascripts/discourse/controllers/admin-wizards-api.js.es6 b/assets/javascripts/discourse/controllers/admin-wizards-api.js.es6 index 22f18ea8..42451421 100644 --- a/assets/javascripts/discourse/controllers/admin-wizards-api.js.es6 +++ b/assets/javascripts/discourse/controllers/admin-wizards-api.js.es6 @@ -198,6 +198,9 @@ export default Ember.Controller.extend({ }, clearLogs() { + const name = this.get('api.name'); + if (!name) return; + ajax(`/admin/wizards/apis/logs/${name.underscore()}`, { type: 'DELETE' }).catch(popupAjaxError)