From a60c3ecd243d293ff6843c4868fd953d465b45a1 Mon Sep 17 00:00:00 2001 From: bobzel Date: Sat, 10 Feb 2024 19:02:14 -0500 Subject: more updates to npm packages. --- src/client/views/collections/collectionSchema/SchemaTableCell.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/collectionSchema/SchemaTableCell.tsx b/src/client/views/collections/collectionSchema/SchemaTableCell.tsx index dbaa6e110..5c0eba860 100644 --- a/src/client/views/collections/collectionSchema/SchemaTableCell.tsx +++ b/src/client/views/collections/collectionSchema/SchemaTableCell.tsx @@ -261,18 +261,18 @@ export class SchemaDateCell extends ObservableReactComponent { + handleChange = (date: Date | null) => { // const script = CompileScript(date.toString(), { requiredType: "Date", addReturn: true, params: { this: Doc.name } }); // if (script.compiled) { // this.applyToDoc(this._document, this._props.row, this._props.col, script.run); // } else { // ^ DateCast is always undefined for some reason, but that is what the field should be set to - this._props.Document[this._props.fieldKey] = new DateField(date as Date); + date && (this._props.Document[this._props.fieldKey] = new DateField(date)); //} }; render() { - return this.handleChange(date)} />; + return this.handleChange(date)} />; } } @observer -- cgit v1.2.3-70-g09d2