Skip to content

Commit

Permalink
feat: always redirect editor to proposals page (#586)
Browse files Browse the repository at this point in the history
Currently our redirect is not stable (it just goes back), so you
might end up at treasury page, overview, proposals page, previous draft etc.

This will make it always redirect to proposals page.
  • Loading branch information
Sekhmet authored Aug 5, 2024
1 parent 571124f commit 999de09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/ui/src/views/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,10 @@ async function handleProposeClick() {
}
if (result) {
proposalsStore.reset(address.value!, networkId.value!);
router.back();
router.push({
name: 'space-proposals',
params: { id: param.value }
});
}
} finally {
sending.value = false;
Expand Down

0 comments on commit 999de09

Please sign in to comment.