Skip to content

Commit 2c62676

Browse files
Clubbed the conditions
1 parent 0f81a14 commit 2c62676

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ui/src/views/dashboard/UsageDashboard.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,8 @@ export default {
142142
(newValue, oldValue) => {
143143
if (newValue && newValue.id && (!oldValue || newValue.id !== oldValue.id)) {
144144
this.fetchData()
145-
} else if (store.getters.userInfo.roletype !== 'Admin') {
146-
if (!store.getters.logoutFlag) {
147-
this.fetchData()
148-
}
145+
} else if (store.getters.userInfo.roletype !== 'Admin' && !store.getters.logoutFlag) {
146+
this.fetchData()
149147
}
150148
}
151149
)

0 commit comments

Comments
 (0)