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-06-10 20:41:14 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-10 20:41:14 -0400
commit74849a5f9307ca64e2bbafa9eaa77822de18102d (patch)
tree82fe4a898a1e2ea13e0d537fe9e2332af40f2a4a /src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
parent03f9fd4beb2bd3efa8f88c71bdbaf52dbec82e66 (diff)
bug fixed
Diffstat (limited to 'src/client/views/collections/collectionSchema/CollectionSchemaView.tsx')
-rw-r--r--src/client/views/collections/collectionSchema/CollectionSchemaView.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
index 1952f59f5..dc29e7413 100644
--- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
+++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
@@ -105,7 +105,7 @@ export class CollectionSchemaView extends CollectionSubView() {
@computed get _selectedDocs() {
// get all selected documents then filter out any whose parent is not this schema document
- const selected = DocumentView.SelectedDocs().filter(doc => this._docs.includes(doc));
+ const selected = DocumentView.SelectedDocs().filter(doc => this.docs.includes(doc));
if (!selected.length) {
// if no schema doc is directly selected, test if a child of a schema doc is selected (such as in the preview window)
const childOfSchemaDoc = DocumentView.SelectedDocs().find(sel => DocumentView.getContextPath(sel, true).includes(this.Document));
@@ -525,7 +525,8 @@ export class CollectionSchemaView extends CollectionSubView() {
selectCell = (doc: Doc, col: number, shiftKey: boolean, ctrlKey: boolean) => {
if (!shiftKey && !ctrlKey) this.clearSelection();
!this._selectedCells && (this._selectedCells = []);
- !shiftKey && this._selectedCells && this._selectedCells.push(doc);
+ !shiftKey && this._selectedCells.push(doc);
+ this._selectedCells.forEach(d => console.log(d.title))
const index = this.rowIndex(doc);
if (!this) return;