Gave defaults to adjustments and effects for attributes in case they have not been set yet

This commit is contained in:
Stefan Zermatten
2019-02-04 14:30:41 +02:00
parent 41c69ae040
commit 7742e5deef

View File

@@ -39,8 +39,8 @@
type: String,
value: Number,
mod: Number,
adjustment: Number,
effects: Array,
adjustment: {type: Number, default: 0},
effects: {type: Array, default: () => []},
},
methods: {
numberToSignedString,