aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSubView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-03-13 09:27:25 -0500
committerbobzel <zzzman@gmail.com>2021-03-13 09:27:25 -0500
commitdf0c30a1f8c1a507be7582a9c97dc5546ae719c8 (patch)
tree9c489f866f68aac465f2e7a7d59d68c4fe056788 /src/client/views/collections/CollectionSubView.tsx
parentb18d4d2b9a4a624e61116642d4dbfe9a53437d0c (diff)
fixed marquee annotations on pdfs from crashing - still need to fix offset problem.
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
-rw-r--r--src/client/views/collections/CollectionSubView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx
index c63779f44..3bde55af9 100644
--- a/src/client/views/collections/CollectionSubView.tsx
+++ b/src/client/views/collections/CollectionSubView.tsx
@@ -66,7 +66,7 @@ export function CollectionSubView<T, X>(schemaCtor: (doc: Doc) => T, moreProps?:
@computed get dataField() {
// sets the dataDoc's data field to an empty list if the data field is undefined - prevents issues with addonly
// setTimeout changes it outside of the @computed section
- !this.dataDoc[this.props.fieldKey] && setTimeout(() => this.dataDoc[this.props.fieldKey] = new List<Doc>());
+ !this.dataDoc[this.props.fieldKey] && setTimeout(() => !this.dataDoc[this.props.fieldKey] && (this.dataDoc[this.props.fieldKey] = new List<Doc>()));
return this.dataDoc[this.props.fieldKey];
}