From a95043b3fd0325f79cae080bc71e8fe06432bdc3 Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 3 Mar 2023 10:05:50 -0500 Subject: fixed assigning non-setter functions --- src/client/documents/Documents.ts | 2 +- .../views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 70c57e8fa..ebd06dbe2 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -1417,7 +1417,7 @@ export namespace DocUtils { }); funcs && Object.keys(funcs) - .filter(key => key.endsWith('-setter')) + .filter(key => !key.endsWith('-setter')) .map(key => { const cfield = ComputedField.WithoutComputed(() => FieldValue(doc[key])); if (ScriptCast(cfield)?.script.originalScript !== funcs[key]) { diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index 9bfa946ea..79832eb39 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -1416,6 +1416,7 @@ export class CollectionFreeFormView extends CollectionSubView(doc instanceof Doc ? [doc] : doc); return true; } -- cgit v1.2.3-70-g09d2