From 9f0ae26a91e51b4ba927d9db8d717b8435ecde1a Mon Sep 17 00:00:00 2001
From: Nathan-SR <144961007+Nathan-SR@users.noreply.github.com>
Date: Thu, 7 Nov 2024 00:44:37 -0500
Subject: c

---
 src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx')

diff --git a/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx b/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx
index 2e96465fc..a08686a36 100644
--- a/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx
+++ b/src/client/views/nodes/DataVizBox/DocCreatorMenu/DocCreatorMenu.tsx
@@ -112,7 +112,7 @@ export class DocCreatorMenu extends ObservableReactComponent<FieldViewProps> {
         this._userTemplates.push({template: template, doc: template.mainField.renderedDoc()});
     };
     @action removeUserTemplate = (template: Template) => {
-        this._userTemplates = this._userTemplates.filter(info => info.template === template);
+        this._userTemplates = this._userTemplates.filter(info => info.template !== template);
     }
     @action updateTemplatePreview = (template: Template) => {
         template.renderUpdates();
@@ -897,7 +897,7 @@ export class DocCreatorMenu extends ObservableReactComponent<FieldViewProps> {
                                                 removeDocument={returnFalse}
                                                 PanelWidth={() => this._selectedTemplate === template ? 104 : 111}
                                                 PanelHeight={() => this._selectedTemplate === template ? 104 : 111}
-                                                ScreenToLocalTransform={() => new Transform(-this._pageX - 5,-this._pageY - 35, 1)}
+                                                ScreenToLocalTransform={() => new Transform(-this._pageX - 5, -this._pageY - 35, 1)}
                                                 renderDepth={1}
                                                 whenChildContentsActiveChanged={emptyFunction}
                                                 focus={emptyFunction}
-- 
cgit v1.2.3-70-g09d2

