aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorMohammad Amoush <mohammad_amoush@brown.edu>2019-07-23 17:33:31 -0400
committerMohammad Amoush <mohammad_amoush@brown.edu>2019-07-23 17:33:31 -0400
commit0591b8f1e60d1285fd9aac3e61160824948a166b (patch)
treebf63793e69fc3267e5aeedffd644b9a2decf23bc /src/client/documents/Documents.ts
parente1b750da8faf8f00707de1b65efbd210c19fa723 (diff)
Everything related to search stored
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts2
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;
};