aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorljungster <parkerljung@gmail.com>2022-06-03 12:55:59 -0500
committerljungster <parkerljung@gmail.com>2022-06-03 12:55:59 -0500
commit8abf2d620e72c1d2b1ab805d0f2a8a459d4d51a4 (patch)
treef406f3f6a986252a09ab382356c30dca91e7169d
parentb2cf58d83b9f2c2636975bccc53212dd1b09856e (diff)
fixed not showing columns unless doc already added
-rw-r--r--src/client/views/collections/CollectionNoteTakingView.tsx10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/client/views/collections/CollectionNoteTakingView.tsx b/src/client/views/collections/CollectionNoteTakingView.tsx
index 50390957a..1e3a27d24 100644
--- a/src/client/views/collections/CollectionNoteTakingView.tsx
+++ b/src/client/views/collections/CollectionNoteTakingView.tsx
@@ -82,15 +82,9 @@ export class CollectionNoteTakingView extends CollectionSubView<Partial<collecti
super(props);
if (this.columnHeaders === undefined) {
- // TODO: what is a layout doc? Is it literally how this document is supposed to be layed out?
- // here we're making an empty list of column headers (again, what Mehek showed us)
- this.layoutDoc._columnHeaders = new List<SchemaHeaderField>();
- // this.state = {
- // columnStartXCoords: [0]
- // }
- this.columnStartXCoords = [0]
+ this.layoutDoc._columnHeaders = new List<SchemaHeaderField>([new SchemaHeaderField('New Column')]);
+ this.columnStartXCoords = [0]
} else {
- //TODO instantiate columnStartXCoords and dividerXCoords
const numHeaders = this.columnHeaders.length
this.resizeColumns(numHeaders)
}