aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSchemaCells.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-09-21 15:07:33 -0400
committerbobzel <zzzman@gmail.com>2020-09-21 15:07:33 -0400
commit51aab84bc8814ea1be6aed3eca02da3ec00a280b (patch)
tree8eed6448cbdd93997658a70f36fb1f4483e4f266 /src/client/views/collections/CollectionSchemaCells.tsx
parent19d22f589c1ce0475b87d5c27859d3dde76c084b (diff)
fixed fill down for schema cols with ctrl-enter. fixed gathering facet values in FilterBox
Diffstat (limited to 'src/client/views/collections/CollectionSchemaCells.tsx')
-rw-r--r--src/client/views/collections/CollectionSchemaCells.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionSchemaCells.tsx b/src/client/views/collections/CollectionSchemaCells.tsx
index 3d472b791..2443bd34e 100644
--- a/src/client/views/collections/CollectionSchemaCells.tsx
+++ b/src/client/views/collections/CollectionSchemaCells.tsx
@@ -251,7 +251,7 @@ export class CollectionSchemaCell extends React.Component<CellProps> {
})}
OnFillDown={async (value: string) => {
const script = CompileScript(value, { requiredType: type, typecheck: false, editable: true, addReturn: true, params: { this: Doc.name, $r: "number", $c: "number", $: "any" } });
- script.compiled && DocListCast(field).
+ script.compiled && DocListCast(this.props.Document[this.props.fieldKey]).
forEach((doc, i) => value.startsWith(":=") ?
this.props.setComputed(value.substring(2), Doc.GetProto(doc), this.renderFieldKey, i, this.props.col) :
this.applyToDoc(Doc.GetProto(doc), i, this.props.col, script.run));