diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-04-04 14:51:22 -0400 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-04-04 14:51:22 -0400 |
commit | f98acc39b7bd88e1f260bab9b6e072c5401b46d3 (patch) | |
tree | 600411b8be61b8048027e0b0b8fd886f9d17a589 /src/client/documents/Documents.ts | |
parent | 15c1c952c50bb2de972c614e46c5f33c2b2952cc (diff) |
stopped system docs from being filtered
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 12d8445b4..adebb9b1c 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -651,7 +651,7 @@ export namespace Docs { const viewKeys = ["x", "y", "system"]; // keys that should be addded to the view document even though they don't begin with an "_" const { omit: dataProps, extract: viewProps } = OmitKeys(options, viewKeys, "^_"); - dataProps.system = viewProps.system; + dataProps.system = viewProps.system ? (viewProps.system) : (viewProps.system = false); dataProps.isPrototype = true; dataProps.author = Doc.CurrentUserEmail; dataProps.creationDate = new DateField; |