diff options
author | bobzel <zzzman@gmail.com> | 2020-10-06 22:37:41 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-10-06 22:37:41 -0400 |
commit | e32312a409673a23eb4af82ef33f41f8bf226292 (patch) | |
tree | e9ec295ed420317d7da13d53ec00b88df411f662 | |
parent | f6ff002d4b0ede04a2e2751677078b31763c780d (diff) |
runtime error fix for fetchProto(). fix for preview layout of text link.
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBoxComment.scss | 3 | ||||
-rw-r--r-- | src/fields/Doc.ts | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBoxComment.scss b/src/client/views/nodes/formattedText/FormattedTextBoxComment.scss index 582ada6ce..81afba4d7 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBoxComment.scss +++ b/src/client/views/nodes/formattedText/FormattedTextBoxComment.scss @@ -29,9 +29,6 @@ font-style: italic; color: rgb(95, 97, 102); font-size: 10px; - padding-bottom: 4px; - margin-bottom: 5px; - } } diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index a8a5ba9bd..54d85ba86 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -104,6 +104,7 @@ const AclMap = new Map<string, symbol>([ ]); export function fetchProto(doc: Doc) { + if (!doc) return; const permissions: { [key: string]: symbol } = {}; Object.keys(doc).filter(key => key.startsWith("acl") && (permissions[key] = AclMap.get(StrCast(doc[key]))!)); |