Skip to content

Commit

Permalink
fix: add default props to prevent error when the property is not passed
Browse files Browse the repository at this point in the history
  • Loading branch information
sylver-john committed Mar 14, 2018
1 parent 83481b1 commit 3405237
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/VTour.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,14 @@ export default {
type: Object,
default: () => { return DEFAULT_OPTIONS }
},
onNextStep: Function,
onPreviousStep: Function,
onNextStep: {
type:Function,
default: () => {}
},
onPreviousStep: {
type:Function,
default: () => {}
}
},
data () {
return {
Expand Down

0 comments on commit 3405237

Please sign in to comment.