Added calculation errors to attributes and toggles
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import SimpleSchema from 'simpl-schema';
|
||||
import ErrorSchema from '/imports/api/properties/subSchemas/ErrorSchema.js';
|
||||
|
||||
const ToggleSchema = new SimpleSchema({
|
||||
name: {
|
||||
@@ -32,8 +33,8 @@ const ComputedOnlyToggleSchema = new SimpleSchema({
|
||||
type: Array,
|
||||
optional: true,
|
||||
},
|
||||
'errors.$':{
|
||||
type: String,
|
||||
'errors.$': {
|
||||
type: ErrorSchema,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user