From 8abf2d620e72c1d2b1ab805d0f2a8a459d4d51a4 Mon Sep 17 00:00:00 2001
From: ljungster <parkerljung@gmail.com>
Date: Fri, 3 Jun 2022 12:55:59 -0500
Subject: fixed not showing columns unless doc already added

---
 src/client/views/collections/CollectionNoteTakingView.tsx | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

(limited to 'src/client/views/collections/CollectionNoteTakingView.tsx')

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)
         }
-- 
cgit v1.2.3-70-g09d2

