From 2e7d3ec952ec88a928f22b8d7a708cc807d9ecdd Mon Sep 17 00:00:00 2001 From: Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> Date: Wed, 8 May 2024 04:14:49 -0400 Subject: c --- .../views/collections/collectionSchema/CollectionSchemaView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx index d84dd33ff..db7bf8c43 100644 --- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx +++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx @@ -302,7 +302,7 @@ export class CollectionSchemaView extends CollectionSubView() { addNewKey = (key: string, defaultVal: any) => { if (this._newFieldType == ColumnType.Equation) { this.childDocs.forEach(doc => { - const eq = this.parseEquation(defaultVal, doc); + const eq = this.parseEquation(defaultVal); doc[DocData][key] = this.parsedEquationResult(eq, doc); this.setupAutoUpdate(eq, doc); }); @@ -321,7 +321,7 @@ export class CollectionSchemaView extends CollectionSubView() { }); } - parseEquation = (eq: string, doc: Doc): string => { + parseEquation = (eq: string): string => { const variablePattern = /[a-z]+/gi; return eq.replace(variablePattern, (match) => `doc.${match}`); } -- cgit v1.2.3-70-g09d2