diff options
author | yipstanley <stanley_yip@brown.edu> | 2019-07-27 20:12:10 -0400 |
---|---|---|
committer | yipstanley <stanley_yip@brown.edu> | 2019-07-27 20:12:10 -0400 |
commit | f62c275090a0b227a5f77ed14e0a6c7d19d20052 (patch) | |
tree | 6e72aacb0ca2c2527c6dfc6e19900030eed57111 /src/new_fields/Types.ts | |
parent | d53ad748d90ca1c863a7ef52d0835573ce967a54 (diff) | |
parent | 5cbbd71ceb98a554109ac2a4469a02b28a836e61 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into pdf_paste_backlink
Diffstat (limited to 'src/new_fields/Types.ts')
-rw-r--r-- | src/new_fields/Types.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/new_fields/Types.ts b/src/new_fields/Types.ts index f8a4a30b4..565ae2ee3 100644 --- a/src/new_fields/Types.ts +++ b/src/new_fields/Types.ts @@ -78,7 +78,7 @@ export function StrCast(field: FieldResult, defaultVal: string | null = "") { return Cast(field, "string", defaultVal); } -export function BoolCast(field: FieldResult, defaultVal: boolean | null = null) { +export function BoolCast(field: FieldResult, defaultVal: boolean | null = false) { return Cast(field, "boolean", defaultVal); } export function DateCast(field: FieldResult) { |