aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/KeyValueBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-03-23 10:06:39 -0400
committerbobzel <zzzman@gmail.com>2023-03-23 10:06:39 -0400
commitd5f60e34e8ac9f99c0b442346db5386068af5de2 (patch)
tree71b2c1d7438eb78e7196050c1afe433fa9208f10 /src/client/views/nodes/KeyValueBox.tsx
parentf499698f8d8dd10c020f73528918fce41f37b4ff (diff)
changed showing keyvalue panes to not create a document, but to use the LayoutTemplateString.
Diffstat (limited to 'src/client/views/nodes/KeyValueBox.tsx')
-rw-r--r--src/client/views/nodes/KeyValueBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/KeyValueBox.tsx b/src/client/views/nodes/KeyValueBox.tsx
index 60417430f..9f9d93a82 100644
--- a/src/client/views/nodes/KeyValueBox.tsx
+++ b/src/client/views/nodes/KeyValueBox.tsx
@@ -45,7 +45,7 @@ export class KeyValueBox extends React.Component<FieldViewProps> {
return NumCast(this.props.Document.schemaSplitPercentage, 50);
}
get fieldDocToLayout() {
- return this.props.fieldKey ? Cast(this.props.Document[this.props.fieldKey], Doc, null) : this.props.Document;
+ return this.props.fieldKey ? DocCast(this.props.Document[this.props.fieldKey], DocCast(this.props.Document)) : this.props.Document;
}
@action