diff options
| author | bobzel <zzzman@gmail.com> | 2020-12-02 09:39:46 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-12-02 09:39:46 -0500 |
| commit | 8fdd7fe99ef3360e2693f9abcd9b4fc22096b88b (patch) | |
| tree | 89b8a0005604a83852a480e161631109a56a94ad /src/fields | |
| parent | 3b57c98d83ff99b04723f2c649ca6c42848c29c8 (diff) | |
fixed warnings. prevent titles form showing up in presentationView
Diffstat (limited to 'src/fields')
| -rw-r--r-- | src/fields/Doc.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index 7b01d60e5..782c6c8b3 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -76,7 +76,7 @@ export function DocListCastAsync(field: FieldResult, defaultValue?: Doc[]) { export async function DocCastAsync(field: FieldResult): Promise<Opt<Doc>> { return Cast(field, Doc); } -export function StrListCast(field: FieldResult) { return Cast(field, listSpec("string"), []) as string[]; } +export function StrListCast(field: FieldResult) { return Cast(field, listSpec("string"), []); } export function DocListCast(field: FieldResult) { return Cast(field, listSpec(Doc), []).filter(d => d instanceof Doc) as Doc[]; } export function DocListCastOrNull(field: FieldResult) { return Cast(field, listSpec(Doc), null)?.filter(d => d instanceof Doc) as Doc[] | undefined; } |
