diff --git a/src/components/proposals/proposal-view.vue b/src/components/proposals/proposal-view.vue index 78b1008f3..ed786ed0a 100644 --- a/src/components/proposals/proposal-view.vue +++ b/src/components/proposals/proposal-view.vue @@ -33,7 +33,7 @@ export default { /** * Whether this is preview step of creation wizard */ - created: String, + created: Date, start: String, icon: String, subtitle: String, diff --git a/src/pages/proposals/ProposalDetail.vue b/src/pages/proposals/ProposalDetail.vue index ff174c3b6..9223ac6b3 100644 --- a/src/pages/proposals/ProposalDetail.vue +++ b/src/pages/proposals/ProposalDetail.vue @@ -221,7 +221,7 @@ export default { } this.$apollo.queries.proposal.refetch() - }, 300) + }, 2000) } }, deep: true, @@ -403,8 +403,8 @@ export default { async onPublish (proposal) { try { - this.state = 'PUBLISHING' await this.publishProposal(proposal.docId) + this.state = 'PUBLISHING' this.$router.replace({ params: { data: proposal, isPublishing: true }, query: { refetch: true } }) } catch (e) { this.state = 'WAITING'