szld-libs 0.4.45 → 0.4.46

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.
@@ -798,12 +798,12 @@ function useDynamicForm(props) {
798
798
  isShowLabel = true
799
799
  }) => {
800
800
  var _a;
801
- const json = item.info_base64 === 1 ? getJson(base64ToString(item.info)) : getJson(item.info);
801
+ const json = item.json || (item.info_base64 === 1 ? getJson(base64ToString(item.info)) : getJson(item.info));
802
802
  const itemWithJson = {
803
803
  ...item,
804
804
  json: {
805
- ...item == null ? void 0 : item.json,
806
- ...json
805
+ ...json,
806
+ ...item.json || {}
807
807
  }
808
808
  };
809
809
  if (((_a = itemWithJson.json) == null ? void 0 : _a.hide) === true) {
@@ -799,12 +799,12 @@ function useDynamicForm(props) {
799
799
  isShowLabel = true
800
800
  }) => {
801
801
  var _a;
802
- const json = item.info_base64 === 1 ? method.getJson(method.base64ToString(item.info)) : method.getJson(item.info);
802
+ const json = item.json || (item.info_base64 === 1 ? method.getJson(method.base64ToString(item.info)) : method.getJson(item.info));
803
803
  const itemWithJson = {
804
804
  ...item,
805
805
  json: {
806
- ...item == null ? void 0 : item.json,
807
- ...json
806
+ ...json,
807
+ ...item.json || {}
808
808
  }
809
809
  };
810
810
  if (((_a = itemWithJson.json) == null ? void 0 : _a.hide) === true) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.4.45",
4
+ "version": "0.4.46",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",