From 85468ffa0cdc3139f822be99477f7920fe29d7af Mon Sep 17 00:00:00 2001 From: elsiosanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Wed, 6 May 2020 11:04:16 -0400 Subject: [PATCH] correcting duplicate path error (#482) --- src/views/profile/components/RolesNavbar.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/profile/components/RolesNavbar.vue b/src/views/profile/components/RolesNavbar.vue index bfad7508..e395937f 100644 --- a/src/views/profile/components/RolesNavbar.vue +++ b/src/views/profile/components/RolesNavbar.vue @@ -105,9 +105,11 @@ export default { warehouseUuid: this.warehouseUuid }) .then(response => { + if (this.$route.name !== 'Dashboard') { + this.$router.push({ path: '/' }) + } this.$store.dispatch('listDashboard', response.uuid) }) - this.$router.push({ path: '/' }) }, changeOrganization(organizationUuid) { this.$store.dispatch('user/changeOrganization', {