aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-08-24 18:30:41 -0400
committerbobzel <zzzman@gmail.com>2022-08-24 18:30:41 -0400
commit4658ad7e110ce8a68cc3ecf3693725270b8ca7a4 (patch)
treebc0a6ac81963c36515b1a5de8f3faac09e61ceb0 /src
parentcc1f967b88816f99b131e8d965bc13e16cd26acf (diff)
fixed exception in notetakingview
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/CollectionNoteTakingView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionNoteTakingView.tsx b/src/client/views/collections/CollectionNoteTakingView.tsx
index 81ca4dd98..b359ef420 100644
--- a/src/client/views/collections/CollectionNoteTakingView.tsx
+++ b/src/client/views/collections/CollectionNoteTakingView.tsx
@@ -60,7 +60,7 @@ export class CollectionNoteTakingView extends CollectionSubView<Partial<collecti
const columnHeaders = Cast(this.dataDoc.columnHeaders, listSpec(SchemaHeaderField), null);
const needsUnsetCategory = this.childDocs.some(d => !d[this.notetakingCategoryField] && !columnHeaders.find(sh => sh.heading === 'unset'));
if (needsUnsetCategory) {
- columnHeaders.push(new SchemaHeaderField('unset', undefined, undefined, 1));
+ setTimeout(() => columnHeaders.push(new SchemaHeaderField('unset', undefined, undefined, 1)));
}
return columnHeaders;
}