From 6113d86059e05090f501e2111f1324a08b524d70 Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Tue, 16 Feb 2021 11:19:50 +0200 Subject: [PATCH] Fixed typo in calling a function in Constants autovalue --- app/imports/api/properties/Constants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/imports/api/properties/Constants.js b/app/imports/api/properties/Constants.js index fc38e0ff..d3e8e20a 100644 --- a/app/imports/api/properties/Constants.js +++ b/app/imports/api/properties/Constants.js @@ -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' });