From fe1536918dbbca08c9900497bb466fd7aa36ffdf Mon Sep 17 00:00:00 2001
From: Nathan-SR <144961007+Nathan-SR@users.noreply.github.com>
Date: Sat, 22 Feb 2025 15:02:26 -0500
Subject: Splitting staticfield into different content types (as subclasses)

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

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

diff --git a/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx b/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx
index 16e70a47b..9d132d637 100644
--- a/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx
+++ b/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx
@@ -6,7 +6,6 @@ import { Col } from "./DocCreatorMenu";
 import { DynamicField } from "./FieldTypes/DynamicField";
 import { Field, FieldSettings, ViewType } from "./FieldTypes/Field";
 import {  } from "./FieldTypes/FieldUtils";
-import { } from "./FieldTypes/StaticField";
 import { observer } from "mobx-react";
 import { IDisposer } from "mobx-utils";
 import { Width } from "../../../../../fields/DocSymbols";
@@ -25,7 +24,7 @@ export class Template {
 
     get childFields(): Field[] { return this.mainField.getSubfields };
     get allFields(): Field[] { return this.mainField.getAllSubfields };
-    get contentFields(): Field[] { return this.allFields.filter(field => field.getViewType === ViewType.STATIC) };
+    get contentFields(): Field[] { return this.allFields.filter(field => field !instanceof DynamicField) };
     get doc(){ return this.mainField.renderedDoc; };
     get title() { return this.mainField.getTitle() };
 
-- 
cgit v1.2.3-70-g09d2

