diff --git a/src/api/user/UserAPI.js b/src/api/user/UserAPI.js index 5e2901cdfe..06ce06647f 100644 --- a/src/api/user/UserAPI.js +++ b/src/api/user/UserAPI.js @@ -135,7 +135,7 @@ class UserAPI extends EventEmitter { * @returns {Boolean} */ canProvideStatusForRole() { - if (!this || !this.hasProvider()) { + if (!this.hasProvider()) { return null; } diff --git a/src/plugins/userIndicator/components/UserIndicator.vue b/src/plugins/userIndicator/components/UserIndicator.vue index 28249d912d..cc6153db3c 100644 --- a/src/plugins/userIndicator/components/UserIndicator.vue +++ b/src/plugins/userIndicator/components/UserIndicator.vue @@ -75,7 +75,7 @@ export default { .map(role => ({ key: role, name: role - })).filter(this.openmct.user.canProvideStatusForRole); + })); const dialog = this.openmct.overlays.selection({ selectionOptions,