Fixed props not having a default array for embedded calculations

This commit is contained in:
Stefan Zermatten
2021-01-31 19:42:49 +02:00
parent aee899e181
commit a7898bfe4b
9 changed files with 13 additions and 2 deletions

View File

@@ -119,12 +119,14 @@ let ActionSchema = new SimpleSchema({
const ComputedOnlyActionSchema = new SimpleSchema({
summaryCalculations: {
type: Array,
defaultValue: [],
maxCount: 32,
},
'summaryCalculations.$': InlineComputationSchema,
descriptionCalculations: {
type: Array,
defaultValue: [],
maxCount: 32,
},
'descriptionCalculations.$': InlineComputationSchema,

View File

@@ -78,6 +78,7 @@ let AttributeSchema = new SimpleSchema({
let ComputedOnlyAttributeSchema = new SimpleSchema({
descriptionCalculations: {
type: Array,
defaultValue: [],
maxCount: 32,
},
'descriptionCalculations.$': InlineComputationSchema,

View File

@@ -33,6 +33,7 @@ let BuffSchema = new SimpleSchema({
let ComputedOnlyBuffSchema = new SimpleSchema({
descriptionCalculations: {
type: Array,
defaultValue: [],
maxCount: 32,
},
'descriptionCalculations.$': InlineComputationSchema,

View File

@@ -36,6 +36,7 @@ let ContainerSchema = new SimpleSchema({
const ComputedOnlyContainerSchema = new SimpleSchema({
descriptionCalculations: {
type: Array,
defaultValue: [],
maxCount: 32,
},
'descriptionCalculations.$': InlineComputationSchema,

View File

@@ -19,12 +19,14 @@ let ComputedOnlyFeatureSchema = new SimpleSchema({
summaryCalculations: {
type: Array,
defaultValue: [],
maxCount: 32,
},
'summaryCalculations.$': InlineComputationSchema,
descriptionCalculations: {
type: Array,
defaultValue: [],
maxCount: 32,
},
'descriptionCalculations.$': InlineComputationSchema,

View File

@@ -57,6 +57,7 @@ const ItemSchema = new SimpleSchema({
let ComputedOnlyItemSchema = new SimpleSchema({
descriptionCalculations: {
type: Array,
defaultValue: [],
maxCount: 32,
},
'descriptionCalculations.$': InlineComputationSchema,

View File

@@ -16,12 +16,14 @@ let ComputedOnlyNoteSchema = new SimpleSchema({
summaryCalculations: {
type: Array,
defaultValue: [],
maxCount: 32,
},
'summaryCalculations.$': InlineComputationSchema,
descriptionCalculations: {
type: Array,
defaultValue: [],
maxCount: 32,
},
'descriptionCalculations.$': InlineComputationSchema,

View File

@@ -28,6 +28,7 @@ let SpellListSchema = new SimpleSchema({
const ComputedOnlySpellListSchema = new SimpleSchema({
descriptionCalculations: {
type: Array,
defaultValue: [],
maxCount: 32,
},
'descriptionCalculations.$': InlineComputationSchema,

View File

@@ -8,7 +8,7 @@
</template>
<script>
import EmbedInlineComputations from 'imports/ui/components/computation/EmbedInlineComputations.vue';
import EmbedInlineComputations from '/imports/ui/components/computation/EmbedInlineComputations.vue';
export default {
components: {