X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Fuser-management%2Fsrc%2Fdashboard%2FuserMgmtStore.js;h=407d9d2d4b2e95639d7c01629e62b2144fcbce85;hb=939003042b55d4d24dfbb11daac75821f65c04dc;hp=2293aca8be4149df4324f8e22d80fbbcdb6a06fb;hpb=ba19ffdfd442c7ebe66f482b90f6bc65a0e9b8be;p=osm%2FUI.git diff --git a/skyquake/plugins/user-management/src/dashboard/userMgmtStore.js b/skyquake/plugins/user-management/src/dashboard/userMgmtStore.js index 2293aca8b..407d9d2d4 100644 --- a/skyquake/plugins/user-management/src/dashboard/userMgmtStore.js +++ b/skyquake/plugins/user-management/src/dashboard/userMgmtStore.js @@ -164,7 +164,7 @@ export default class UserManagementStore { } updateUserSuccess() { this.alt.actions.global.hideScreenLoader.defer(); - let users = this.users; + let users = this.users || []; users[this.activeIndex] = { 'user-name': this['user-name'], 'user-domain': this['user-domain'], @@ -182,7 +182,7 @@ export default class UserManagementStore { } createUserSuccess() { this.alt.actions.global.hideScreenLoader.defer(); - let users = this.users; + let users = this.users || []; users.push({ 'user-name': this['user-name'], 'user-domain': this['user-domain'],