Skip to content

Commit cfad358

Browse files
committed
use factory function for prop
1 parent 1d3e54c commit cfad358

File tree

1 file changed

+6
-1
lines changed
  • frontend/express/public/javascripts/countly/vue/components

1 file changed

+6
-1
lines changed

frontend/express/public/javascripts/countly/vue/components/helpers.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,12 @@
936936
visible: {default: true, type: Boolean},
937937
closable: {default: true, type: Boolean},
938938
autoHide: { default: false, type: Boolean },
939-
goTo: { default: { title: '', url: '', from: ''}, type: Object, required: false },
939+
goTo: {
940+
default() {
941+
return { title: '', url: '', from: '' };
942+
},
943+
type: Object
944+
}
940945
},
941946
data: function() {
942947
return {

0 commit comments

Comments
 (0)