correcting duplicate path error (#482)

pull/3759/head
elsiosanchez 2020-05-06 11:04:16 -04:00 committed by GitHub
parent 8d4f2a361f
commit 85468ffa0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -105,9 +105,11 @@ export default {
warehouseUuid: this.warehouseUuid warehouseUuid: this.warehouseUuid
}) })
.then(response => { .then(response => {
if (this.$route.name !== 'Dashboard') {
this.$router.push({ path: '/' })
}
this.$store.dispatch('listDashboard', response.uuid) this.$store.dispatch('listDashboard', response.uuid)
}) })
this.$router.push({ path: '/' })
}, },
changeOrganization(organizationUuid) { changeOrganization(organizationUuid) {
this.$store.dispatch('user/changeOrganization', { this.$store.dispatch('user/changeOrganization', {