diff options
author | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-07-23 17:33:31 -0400 |
---|---|---|
committer | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-07-23 17:33:31 -0400 |
commit | 0591b8f1e60d1285fd9aac3e61160824948a166b (patch) | |
tree | bf63793e69fc3267e5aeedffd644b9a2decf23bc /src/client/documents/Documents.ts | |
parent | e1b750da8faf8f00707de1b65efbd210c19fa723 (diff) |
Everything related to search stored
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 191be9b7d..333e9859b 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -498,7 +498,7 @@ export namespace Docs { const convertObject = (object: any, title?: string): Doc => { let target = new Doc(), result: Opt<Field>; Object.keys(object).map(key => (result = toField(object[key], key)) && (target[key] = result)); - title && (target.title = title); + title && !target.title && (target.title = title); return target; }; |