diff options
author | Sam Wilkins <35748010+samwilkins333@users.noreply.github.com> | 2020-01-13 00:08:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-13 00:08:41 -0500 |
commit | 4f63baaada3dd0f62c0164c53fb6e23408e319e1 (patch) | |
tree | 8e8d9fd9c204f57b281e66ce6c36c0d86f929afc /src/client/DocServer.ts | |
parent | 048420223ad6e17b7fbf61c530d83cc39a919428 (diff) | |
parent | 6162c951e07874fbb12717d4bcd2cd649e41d0d2 (diff) |
Merge pull request #327 from browngraphicslab/no_db
Miscellaneous fixes for Linux and in memory database as alternative to MongoDB
Diffstat (limited to 'src/client/DocServer.ts')
-rw-r--r-- | src/client/DocServer.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/DocServer.ts b/src/client/DocServer.ts index 12fed3e46..d793b56af 100644 --- a/src/client/DocServer.ts +++ b/src/client/DocServer.ts @@ -272,7 +272,7 @@ export namespace DocServer { const fieldMap: { [id: string]: RefField } = {}; const proms: Promise<void>[] = []; for (const field of fields) { - if (field !== undefined) { + if (field !== undefined && field !== null) { // deserialize const prom = SerializationHelper.Deserialize(field).then(deserialized => { fieldMap[field.id] = deserialized; @@ -439,4 +439,4 @@ export namespace DocServer { function respondToDelete(ids: string | string[]) { _respondToDelete(ids); } -}
\ No newline at end of file +} |