From 8a2d35bd9bf9d9871c1aa12332d11a99706b4a73 Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 21 Jun 2022 21:51:28 -0400 Subject: fixed rendering error with DataViz --- src/client/views/nodes/DataViz.tsx | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/DataViz.tsx b/src/client/views/nodes/DataViz.tsx index a3ffade70..d9541dba0 100644 --- a/src/client/views/nodes/DataViz.tsx +++ b/src/client/views/nodes/DataViz.tsx @@ -1,26 +1,21 @@ -import React from "react"; +import { observer } from "mobx-react"; +import * as React from "react"; import { ViewBoxBaseComponent } from '../DocComponent'; import "./DataViz.scss"; import { FieldView, FieldViewProps } from "./FieldView"; +@observer export class DataVizBox extends ViewBoxBaseComponent() { - constructor(props: any) { - super(props); - } - - - public static LayoutString(fieldKey: string) { - return FieldView.LayoutString(DataVizBox, fieldKey); - } + public static LayoutString(fieldKey: string) { return FieldView.LayoutString(DataVizBox, fieldKey); } render() { return ( -
-
- Hi +
+
+ Hi +
-
); } } \ No newline at end of file -- cgit v1.2.3-70-g09d2