aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-05-02 12:42:36 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-05-02 12:42:36 -0400
commitf706f70451525d4d0716c631cece9d78d76b3bfd (patch)
tree4b67df1abd6c5bcaf403144539b3c84034201fdd /src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
parent70ccd8f3da9b97a0812514247385cc9eb3ce49d0 (diff)
removed console.logs
Diffstat (limited to 'src/client/views/collections/collectionSchema/CollectionSchemaView.tsx')
-rw-r--r--src/client/views/collections/collectionSchema/CollectionSchemaView.tsx4
1 files changed, 2 insertions, 2 deletions
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();
};