From 4b1db5899cb04f0892406be32a10bae49d6ba351 Mon Sep 17 00:00:00 2001 From: Tyler Schicke Date: Tue, 16 Jul 2019 22:01:24 -0400 Subject: Fixed errors --- src/client/views/SearchBox.tsx | 2 +- src/new_fields/Schema.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/views/SearchBox.tsx b/src/client/views/SearchBox.tsx index 8fb43021a..1b9be841f 100644 --- a/src/client/views/SearchBox.tsx +++ b/src/client/views/SearchBox.tsx @@ -163,7 +163,7 @@ export class SearchBox extends React.Component { {this._resultsOpen ? (
- {this._results.map(result => )} + {this._results.map(result => )}
) : null} diff --git a/src/new_fields/Schema.ts b/src/new_fields/Schema.ts index 2355304d5..b1a449e08 100644 --- a/src/new_fields/Schema.ts +++ b/src/new_fields/Schema.ts @@ -104,7 +104,7 @@ export function makeStrictInterface(schema: T): (doc: Doc) } export function createSchema(schema: T): T & { proto: ToConstructor } { - schema.proto = Doc; + (schema as any).proto = Doc; return schema as any; } -- cgit v1.2.3-70-g09d2