UI: Fixes issue during logout as user / domain admin (#5476)

This commit is contained in:
Pearl Dsilva 2021-09-20 20:50:19 +05:30 committed by GitHub
parent 0facba9372
commit ca870dfc73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,7 +137,7 @@ export default {
this.$store.watch(
(state, getters) => getters.project,
(newValue, oldValue) => {
if (newValue && newValue !== oldValue) {
if (newValue && (!oldValue || newValue.id !== oldValue.id)) {
this.fetchData()
}
}