aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-12 03:28:07 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-12 03:28:07 -0400
commit707a1a4cba9f0af9ee07b487eddf0f4ca85c8a78 (patch)
tree96fc90a99c3f6af6199add401b6b0d74d7729b15 /src/client/views/collections/collectionSchema/SchemaRowBox.tsx
parent571220cb349644efc149b8e13d000a37366db664 (diff)
col menu icon now shows only on hover
Diffstat (limited to 'src/client/views/collections/collectionSchema/SchemaRowBox.tsx')
-rw-r--r--src/client/views/collections/collectionSchema/SchemaRowBox.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionSchema/SchemaRowBox.tsx b/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
index a8affb0d9..107e29754 100644
--- a/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
+++ b/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
@@ -104,8 +104,9 @@ export class SchemaRowBox extends ViewBoxBaseComponent<SchemaRowBoxProps>() {
@computed get isolatedSelection() {
const toReturn: [boolean, boolean] = [true, true];
- const selectedBelow: boolean = this.schemaView?._selectedDocs.includes(this.schemaView.draggedSpliceDocs.docs[this.rowIndex + 1]);
- const selectedAbove: boolean = this.schemaView?._selectedDocs.includes(this.schemaView.draggedSpliceDocs.docs[this.rowIndex - 1]);
+ const docs = this.schemaView.docsWithDrag.docs;
+ const selectedBelow: boolean = this.schemaView?._selectedDocs.includes(docs[this.rowIndex + 1]);
+ const selectedAbove: boolean = this.schemaView?._selectedDocs.includes(docs[this.rowIndex - 1]);
toReturn[0] = selectedAbove;
toReturn[1] = selectedBelow;
return toReturn;