From 63c0023b5d1bde23ee0d9a1209c8cfda240649f9 Mon Sep 17 00:00:00 2001
From: ljungster <parkerljung@gmail.com>
Date: Sat, 7 May 2022 08:23:27 -0400
Subject: fixed wrong column bug

---
 src/client/views/collections/CollectionNoteTakingView.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(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 4e2bdbfa5..d3b3778a7 100644
--- a/src/client/views/collections/CollectionNoteTakingView.tsx
+++ b/src/client/views/collections/CollectionNoteTakingView.tsx
@@ -121,7 +121,8 @@ export class CollectionNoteTakingView extends CollectionSubView<Partial<collecti
         let changed = false;
         this.filteredChildren.map(d => {
             if (!d[this.pivotField]) {
-              d[this.pivotField] = `New Column`
+              d[this.pivotField] = columnHeaders.length > 0 ? columnHeaders[0].heading : `New Column`
+              // d[this.pivotField] = columnHeaders[0].heading
             };
             const sectionValue = d[this.pivotField] as object;
             // the next five lines ensures that floating point rounding errors don't create more than one section -syip
-- 
cgit v1.2.3-70-g09d2

