From f706f70451525d4d0716c631cece9d78d76b3bfd Mon Sep 17 00:00:00 2001 From: Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> Date: Thu, 2 May 2024 12:42:36 -0400 Subject: removed console.logs --- .../views/collections/collectionSchema/CollectionSchemaView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client/views/collections/collectionSchema') diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx index 13370ea6b..841222c96 100644 --- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx +++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx @@ -371,7 +371,8 @@ export class CollectionSchemaView extends CollectionSubView() { @undoBatch moveColumn = (fromIndex: number, toIndex: number) => { - if (toIndex === this._selectedCol) this._selectedCol = fromIndex; //keeps selected cell consistent + if (this._selectedCol === fromIndex) this._selectedCol = toIndex; + else if (toIndex === this._selectedCol) this._selectedCol = fromIndex; //keeps selected cell consistent let currKeys = this.columnKeys.slice(); currKeys.splice(toIndex, 0, currKeys.splice(fromIndex, 1)[0]); @@ -508,7 +509,6 @@ export class CollectionSchemaView extends CollectionSubView() { @action clearSelection = () => { - //console.log("clear selection") //!!! SelectionManager.DeselectAll(); this.deselectAllCells(); }; -- cgit v1.2.3-70-g09d2