Fixed props not having a default array for embedded calculations
This commit is contained in:
@@ -119,12 +119,14 @@ let ActionSchema = new SimpleSchema({
|
|||||||
const ComputedOnlyActionSchema = new SimpleSchema({
|
const ComputedOnlyActionSchema = new SimpleSchema({
|
||||||
summaryCalculations: {
|
summaryCalculations: {
|
||||||
type: Array,
|
type: Array,
|
||||||
|
defaultValue: [],
|
||||||
maxCount: 32,
|
maxCount: 32,
|
||||||
},
|
},
|
||||||
'summaryCalculations.$': InlineComputationSchema,
|
'summaryCalculations.$': InlineComputationSchema,
|
||||||
|
|
||||||
descriptionCalculations: {
|
descriptionCalculations: {
|
||||||
type: Array,
|
type: Array,
|
||||||
|
defaultValue: [],
|
||||||
maxCount: 32,
|
maxCount: 32,
|
||||||
},
|
},
|
||||||
'descriptionCalculations.$': InlineComputationSchema,
|
'descriptionCalculations.$': InlineComputationSchema,
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ let AttributeSchema = new SimpleSchema({
|
|||||||
let ComputedOnlyAttributeSchema = new SimpleSchema({
|
let ComputedOnlyAttributeSchema = new SimpleSchema({
|
||||||
descriptionCalculations: {
|
descriptionCalculations: {
|
||||||
type: Array,
|
type: Array,
|
||||||
|
defaultValue: [],
|
||||||
maxCount: 32,
|
maxCount: 32,
|
||||||
},
|
},
|
||||||
'descriptionCalculations.$': InlineComputationSchema,
|
'descriptionCalculations.$': InlineComputationSchema,
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ let BuffSchema = new SimpleSchema({
|
|||||||
let ComputedOnlyBuffSchema = new SimpleSchema({
|
let ComputedOnlyBuffSchema = new SimpleSchema({
|
||||||
descriptionCalculations: {
|
descriptionCalculations: {
|
||||||
type: Array,
|
type: Array,
|
||||||
|
defaultValue: [],
|
||||||
maxCount: 32,
|
maxCount: 32,
|
||||||
},
|
},
|
||||||
'descriptionCalculations.$': InlineComputationSchema,
|
'descriptionCalculations.$': InlineComputationSchema,
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ let ContainerSchema = new SimpleSchema({
|
|||||||
const ComputedOnlyContainerSchema = new SimpleSchema({
|
const ComputedOnlyContainerSchema = new SimpleSchema({
|
||||||
descriptionCalculations: {
|
descriptionCalculations: {
|
||||||
type: Array,
|
type: Array,
|
||||||
|
defaultValue: [],
|
||||||
maxCount: 32,
|
maxCount: 32,
|
||||||
},
|
},
|
||||||
'descriptionCalculations.$': InlineComputationSchema,
|
'descriptionCalculations.$': InlineComputationSchema,
|
||||||
|
|||||||
@@ -19,12 +19,14 @@ let ComputedOnlyFeatureSchema = new SimpleSchema({
|
|||||||
|
|
||||||
summaryCalculations: {
|
summaryCalculations: {
|
||||||
type: Array,
|
type: Array,
|
||||||
|
defaultValue: [],
|
||||||
maxCount: 32,
|
maxCount: 32,
|
||||||
},
|
},
|
||||||
'summaryCalculations.$': InlineComputationSchema,
|
'summaryCalculations.$': InlineComputationSchema,
|
||||||
|
|
||||||
descriptionCalculations: {
|
descriptionCalculations: {
|
||||||
type: Array,
|
type: Array,
|
||||||
|
defaultValue: [],
|
||||||
maxCount: 32,
|
maxCount: 32,
|
||||||
},
|
},
|
||||||
'descriptionCalculations.$': InlineComputationSchema,
|
'descriptionCalculations.$': InlineComputationSchema,
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ const ItemSchema = new SimpleSchema({
|
|||||||
let ComputedOnlyItemSchema = new SimpleSchema({
|
let ComputedOnlyItemSchema = new SimpleSchema({
|
||||||
descriptionCalculations: {
|
descriptionCalculations: {
|
||||||
type: Array,
|
type: Array,
|
||||||
|
defaultValue: [],
|
||||||
maxCount: 32,
|
maxCount: 32,
|
||||||
},
|
},
|
||||||
'descriptionCalculations.$': InlineComputationSchema,
|
'descriptionCalculations.$': InlineComputationSchema,
|
||||||
|
|||||||
@@ -16,12 +16,14 @@ let ComputedOnlyNoteSchema = new SimpleSchema({
|
|||||||
|
|
||||||
summaryCalculations: {
|
summaryCalculations: {
|
||||||
type: Array,
|
type: Array,
|
||||||
|
defaultValue: [],
|
||||||
maxCount: 32,
|
maxCount: 32,
|
||||||
},
|
},
|
||||||
'summaryCalculations.$': InlineComputationSchema,
|
'summaryCalculations.$': InlineComputationSchema,
|
||||||
|
|
||||||
descriptionCalculations: {
|
descriptionCalculations: {
|
||||||
type: Array,
|
type: Array,
|
||||||
|
defaultValue: [],
|
||||||
maxCount: 32,
|
maxCount: 32,
|
||||||
},
|
},
|
||||||
'descriptionCalculations.$': InlineComputationSchema,
|
'descriptionCalculations.$': InlineComputationSchema,
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ let SpellListSchema = new SimpleSchema({
|
|||||||
const ComputedOnlySpellListSchema = new SimpleSchema({
|
const ComputedOnlySpellListSchema = new SimpleSchema({
|
||||||
descriptionCalculations: {
|
descriptionCalculations: {
|
||||||
type: Array,
|
type: Array,
|
||||||
|
defaultValue: [],
|
||||||
maxCount: 32,
|
maxCount: 32,
|
||||||
},
|
},
|
||||||
'descriptionCalculations.$': InlineComputationSchema,
|
'descriptionCalculations.$': InlineComputationSchema,
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import EmbedInlineComputations from 'imports/ui/components/computation/EmbedInlineComputations.vue';
|
import EmbedInlineComputations from '/imports/ui/components/computation/EmbedInlineComputations.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|||||||
Reference in New Issue
Block a user