Skip to content

Commit

Permalink
Fix proposal redirection (snapshot-labs#601)
Browse files Browse the repository at this point in the history
* Fix proposal redirection

* Fix params
  • Loading branch information
ChaituVR authored Sep 6, 2021
1 parent b6a9070 commit 1c00238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Proposal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function loadProposal() {
proposal.value = proposalObj.proposal;
// Redirect to proposal spaceId if it doesn't match route key
if (route.key !== proposal.value.space.id)
if (route.params.key && route.params.key !== proposal.value.space.id)
router.push({
name: 'proposal',
params: {
Expand Down

0 comments on commit 1c00238

Please sign in to comment.