Skip to content

Commit

Permalink
fix(ProposalCreate): not possible to edit previously created proposals (
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenibir authored Jan 11, 2023
1 parent 0ee4689 commit 6d52c0e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/pages/proposals/ProposalCreate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,10 @@ export default {
},
continueDraft (draft) {
this.currentStepName = draft.pastSteps[draft.pastSteps.length - 1]
this.pastSteps = draft.pastSteps
if (draft.pastSteps) {
this.currentStepName = draft.pastSteps[draft.pastSteps.length - 1]
this.pastSteps = draft.pastSteps
}
this.$store.dispatch('proposals/continueDraft', draft)
if (draft.category) {
Expand Down Expand Up @@ -337,7 +339,9 @@ export default {
deleteDraft (draft) {
this.removeDraft(draft)
this.resetStates()
if (!draft.draftId) {
this.resetStates()
}
this.getDraft()
// this.draft = null
},
Expand Down

0 comments on commit 6d52c0e

Please sign in to comment.