From df3fa2ceb0846491d05e362c28231c3679e021c5 Mon Sep 17 00:00:00 2001 From: Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> Date: Tue, 11 Jun 2024 12:05:43 -0400 Subject: doninfos --- .../collections/collectionSchema/CollectionSchemaView.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 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 4abbc7f51..bdf04f47b 100644 --- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx +++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx @@ -260,6 +260,10 @@ export class CollectionSchemaView extends CollectionSubView() { } break; case 'Backspace': { + // this._docs.forEach(doc => { + // if (!this.childDocs.concat(this.displayedSubCollectionDocs(this.Document))) + // }); + // console.log('backspace detected') undoable(() => {this._selectedDocs.forEach(d => this._docs.includes(d) && this.removeDoc(d));}, 'delete schema row'); break; } @@ -319,12 +323,8 @@ export class CollectionSchemaView extends CollectionSubView() { let modField = field.slice(); let matches; let results = new Map(); - while ((matches = idPattern.exec(field)) !== null) { - results.set(matches[0], matches[1].replace(/"/g, '')); - } - results.forEach((id, funcId) => { - modField = modField.replace(funcId, 'd' + (DocumentView.getDocViewIndex(IdToDoc(id))).toString()); - }) + while ((matches = idPattern.exec(field)) !== null) {results.set(matches[0], matches[1].replace(/"/g, '')); } + results.forEach((id, funcId) => {modField = modField.replace(funcId, 'd' + (DocumentView.getDocViewIndex(IdToDoc(id))).toString());}) return modField; } -- cgit v1.2.3-70-g09d2