@bigbinary/neeto-rules-frontend 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.cjs.js
CHANGED
|
@@ -11067,6 +11067,9 @@ var setEditorContent = function setEditorContent(ref, content) {
|
|
|
11067
11067
|
|
|
11068
11068
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
11069
11069
|
var dotPath = ramda.useWith(ramda.path, [ramda.split(".")]);
|
|
11070
|
+
var formatAdditionalData = function formatAdditionalData(additionalData) {
|
|
11071
|
+
return neetoCist.isPresent(additionalData) ? additionalData : [ADDITIONAL_DATA_INITIAL_VALUE];
|
|
11072
|
+
};
|
|
11070
11073
|
|
|
11071
11074
|
var KeyValuePairsField = reactUtils.withT(function (_ref) {
|
|
11072
11075
|
var t = _ref.t,
|
|
@@ -11180,7 +11183,7 @@ var ApiFields = function ApiFields(_ref) {
|
|
|
11180
11183
|
var isTemplateSelectionEnabled = neetoCist.isPresent(templates);
|
|
11181
11184
|
var handleTemplateChange = function handleTemplateChange(template) {
|
|
11182
11185
|
setFieldValue("".concat(name, ".endpoint"), template.endpoint);
|
|
11183
|
-
setFieldValue("".concat(name, ".additionalData"), template.additionalData);
|
|
11186
|
+
setFieldValue("".concat(name, ".additionalData"), formatAdditionalData(template.additionalData));
|
|
11184
11187
|
};
|
|
11185
11188
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
11186
11189
|
children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
|