aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-02-01 10:41:35 -0500
committerbobzel <zzzman@gmail.com>2024-02-01 10:41:35 -0500
commit9e0de1f1ee32511cf5c9b3b19accad354c3fda92 (patch)
tree975e02b4b15b86a0eb50472d2bcf609ad24e9bd7 /src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
parent0d8c05db9cbb5a23a94554c65015c347ff8c38b9 (diff)
enabled lists to be entered via dashfieldview. changed code/text import to allow data to be inserted into template.
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx')
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
index 9368560e9..bd046d6ff 100644
--- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
@@ -1502,7 +1502,7 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection
({ code, first }) => {
if (!code.includes('dashDiv')) {
const script = CompileScript(code, { params: { docView: 'any' }, typecheck: false, editable: true });
- if (script.compiled) script.run({ this: this.Document, docView: this.DocumentView?.() });
+ if (script.compiled) script.run({ this: this.DocumentView?.() });
} else code && !first && eval(code);
},
{ fireImmediately: true }