From d207cf565968167c59b16baf6ca5ce2543c680ea Mon Sep 17 00:00:00 2001
From: Nathan-SR <144961007+Nathan-SR@users.noreply.github.com>
Date: Thu, 20 Jun 2024 01:57:07 -0400
Subject: cursor position consistency for schema cell field

---
 .../views/collections/collectionSchema/CollectionSchemaView.tsx       | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

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

diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
index 1d9245206..c287b7d44 100644
--- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
+++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
@@ -478,7 +478,6 @@ export class CollectionSchemaView extends CollectionSubView() {
         this._colEles.forEach((colRef, i) => {
             const edgeStyle = i === index ? `solid 2px ${Colors.MEDIUM_BLUE}` : '';
             const sorted = i === this.columnKeys.indexOf(this.sortField);
-            console.log(sorted)
             const cellEles = [
                 colRef,
                 ...this.docsWithDrag.docs 
@@ -497,7 +496,7 @@ export class CollectionSchemaView extends CollectionSubView() {
     highlightSortedColumn = (field?: string, descending?: boolean) => {
         let index = -1;
         let highlightColors: string[] = [];
-        const rowCount: number = this._rowEles.size + 1;
+        const rowCount: number = this._docs.length + 1;
         if (field || this.sortField){
             index = this.columnKeys.indexOf(field || this.sortField);
             const increment: number = 100/rowCount;
@@ -530,7 +529,6 @@ export class CollectionSchemaView extends CollectionSubView() {
 
     getCellElement = (doc: Doc, fieldKey: string) => {
         const index = this.columnKeys.indexOf(fieldKey);
-        console.log(doc.title)
         const cell = this._rowEles.get(doc).children[1].children[index];
         return cell;
     }
-- 
cgit v1.2.3-70-g09d2

