From 115291f9af436efdf4ec155b61bf0575f49da6c1 Mon Sep 17 00:00:00 2001 From: Ray Lee Date: Thu, 22 Aug 2024 16:10:28 -0400 Subject: [PATCH 1/2] Add toJSON methods to some form components. --- src/components/record/Field.jsx | 1 + src/components/record/InputTable.jsx | 1 + src/containers/layout/PanelContainer.jsx | 1 + 3 files changed, 3 insertions(+) diff --git a/src/components/record/Field.jsx b/src/components/record/Field.jsx index 89da6b09e..779266919 100644 --- a/src/components/record/Field.jsx +++ b/src/components/record/Field.jsx @@ -242,3 +242,4 @@ export default function Field(props, context) { Field.contextTypes = contextTypes; Field.propTypes = propTypes; +Field.toJSON = () => 'Field'; diff --git a/src/components/record/InputTable.jsx b/src/components/record/InputTable.jsx index 0bd91db69..60a1308de 100644 --- a/src/components/record/InputTable.jsx +++ b/src/components/record/InputTable.jsx @@ -111,3 +111,4 @@ export default function InputTable(props, context) { InputTable.propTypes = propTypes; InputTable.contextTypes = contextTypes; +InputTable.toJSON = () => 'InputTable'; diff --git a/src/containers/layout/PanelContainer.jsx b/src/containers/layout/PanelContainer.jsx index b49b717ee..cdda08ceb 100644 --- a/src/containers/layout/PanelContainer.jsx +++ b/src/containers/layout/PanelContainer.jsx @@ -72,5 +72,6 @@ export const ConnectedPanel = connect( const EnhancedConnectedPanel = withRecordType(withConfig(ConnectedPanel)); EnhancedConnectedPanel.propTypes = Panel.propTypes; +EnhancedConnectedPanel.toJSON = () => 'Panel'; export default EnhancedConnectedPanel; From ebac971b60b4d3e1aa860680480245db910ca90a Mon Sep 17 00:00:00 2001 From: Ray Lee Date: Thu, 22 Aug 2024 16:11:44 -0400 Subject: [PATCH 2/2] Fix namespace prefix in account config. --- src/plugins/recordTypes/account/forms/default.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/recordTypes/account/forms/default.jsx b/src/plugins/recordTypes/account/forms/default.jsx index 2962b75ee..6b956f7bf 100644 --- a/src/plugins/recordTypes/account/forms/default.jsx +++ b/src/plugins/recordTypes/account/forms/default.jsx @@ -15,7 +15,7 @@ const template = (configContext) => { } = configContext.recordComponents; return ( - +