aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DocumentManager.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-05-03 09:20:46 -0400
committerbobzel <zzzman@gmail.com>2024-05-03 09:20:46 -0400
commite2196ef689b6784613b5950446609b08fb0ef7a2 (patch)
treefa76ab85ca5f0c10daafdc2ba6f1498e0d17d259 /src/client/util/DocumentManager.ts
parentf706f70451525d4d0716c631cece9d78d76b3bfd (diff)
reverting unnecessary changes
Diffstat (limited to 'src/client/util/DocumentManager.ts')
-rw-r--r--src/client/util/DocumentManager.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/util/DocumentManager.ts b/src/client/util/DocumentManager.ts
index 561114182..ae5fafcdd 100644
--- a/src/client/util/DocumentManager.ts
+++ b/src/client/util/DocumentManager.ts
@@ -36,7 +36,6 @@ export class DocumentManager {
}
public DeleteDocumentView(dv: DocumentView) {
this._documentViews.delete(dv);
- console.log("deleted")
}
//private constructor so no other class can create a nodemanager
@@ -95,7 +94,7 @@ export class DocumentManager {
this.callAddViewFuncs(view);
} // prettier-ignore
};
-
+
public RemoveView = action((view: DocumentView) => {
if (!view._props.LayoutTemplateString?.includes(KeyValueBox.name) && !view._props.LayoutTemplateString?.includes(LinkAnchorBox.name)) {
this.DeleteDocumentView(view);
@@ -127,8 +126,6 @@ export class DocumentManager {
public getDocumentView(target: Doc | undefined, preferredCollection?: DocumentView): DocumentView | undefined {
const docViewArray = DocumentManager.Instance.DocumentViews;
- //console.log(docViewArray)
- //console.log(this._documentViews)
const passes = !target ? [] : preferredCollection ? [preferredCollection, undefined] : [undefined];
return passes.reduce(
(toReturn, pass) =>