diff options
author | bobzel <zzzman@gmail.com> | 2023-03-03 10:05:50 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-03-03 10:05:50 -0500 |
commit | a95043b3fd0325f79cae080bc71e8fe06432bdc3 (patch) | |
tree | 15793cf2c63c4f180fcf73da54b3af82a2310920 /src | |
parent | bcdd26bd71a40ba78cdc38d957c91cfa1d0b6d63 (diff) |
fixed assigning non-setter functions
Diffstat (limited to 'src')
-rw-r--r-- | src/client/documents/Documents.ts | 2 | ||||
-rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 1 |
2 files changed, 2 insertions, 1 deletions
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<Partial<collection case undefined: case OpenWhere.lightbox: if (this.layoutDoc._isLightbox) { + // _isLightbox docs have a script that will unset this overlay onClick this.layoutDoc[this.props.fieldKey] = new List<Doc>(doc instanceof Doc ? [doc] : doc); return true; } |