Skip to content

Commit

Permalink
fix: add immediate variable to ensure reactivity
Browse files Browse the repository at this point in the history
  • Loading branch information
antonreshetov committed May 29, 2019
1 parent 5fd8704 commit 21483c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ export default {
template: 'getTemplate'
}),
signatureTemplate () {
return () => import(`./templates/${this.template.selected}`)
const template = this.template.selected
return () => import(`./templates/${template}`)
},
selectTemplate: {
get () {
Expand Down

0 comments on commit 21483c6

Please sign in to comment.