aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-26 14:22:39 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-26 14:22:39 -0400
commit22760f7f9d79511862851a0d8289b9a6ff9956e7 (patch)
tree8c4518e7a9d4f1efa4ae0650f67ca27937fff5ba /src
parent2437028db1f273350b0422da0ef3a5f520ffce59 (diff)
freeze fixed (revisit why this change was needed?)
Diffstat (limited to 'src')
-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 57327a008..497c781fd 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() {
@observable _highlightedCellsInfo: Array<[doc: Doc, field: string]> = [];
@observable _cellHighlightColors: ObservableMap = new ObservableMap<string, string[]>();
@observable _docs: Doc[] = [];
- @observable _referenceSelectMode = {enabled: false, currEditing: undefined}
+ @observable _referenceSelectMode: {enabled: boolean, currEditing: SchemaCellField | undefined} = {enabled: false, currEditing: undefined}
// target HTMLelement portal for showing a popup menu to edit cell values.
public get MenuTarget() {
@@ -114,7 +114,8 @@ 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) && this._selectedCells.includes(doc));
+ const selected = DocumentView.SelectedDocs().filter(doc => this.docs.includes(doc));
+ //&& this._selectedCells.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));