aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-11 12:05:43 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-11 12:05:43 -0400
commitdf3fa2ceb0846491d05e362c28231c3679e021c5 (patch)
tree40bdc7e1408fb13897aed73780c3cd3ebf50ab5d /src/client/views/collections
parentc2a2b8c119c44b167310485cede0920f313cd40a (diff)
doninfos
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/collectionSchema/CollectionSchemaView.tsx12
1 files changed, 6 insertions, 6 deletions
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<string, string>();
- 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;
}