Fixed typo in calling a function in Constants autovalue
This commit is contained in:
@@ -46,7 +46,7 @@ let ConstantSchema = new SimpleSchema({
|
||||
// Ban variables in constants if necessary
|
||||
result && result.traverse(node => {
|
||||
if (node instanceof SymbolNode || node instanceof AccessorNode){
|
||||
context.storeError()({
|
||||
context.storeError({
|
||||
type: 'error',
|
||||
message: 'Variables can\'t be used to define a constant'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user