pds-dev-kit-web-test 2.7.540 → 2.7.541

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.
@@ -113,6 +113,12 @@ function Button(props) {
113
113
  return '';
114
114
  }
115
115
  var value = queryContext.queryData[CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA];
116
+ if (value === null || value === undefined) {
117
+ if (mode === 'EDIT') {
118
+ return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10478" });
119
+ }
120
+ return '';
121
+ }
116
122
  if (formatOption) {
117
123
  return formatOption.formatter(value);
118
124
  }
@@ -98,9 +98,15 @@ function Text(props) {
98
98
  if (mode === 'EDIT') {
99
99
  return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10478" });
100
100
  }
101
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
101
+ return '';
102
102
  }
103
103
  var value = queryContext.queryData[CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA];
104
+ if (value === null || value === undefined) {
105
+ if (mode === 'EDIT') {
106
+ return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10478" });
107
+ }
108
+ return '';
109
+ }
104
110
  if (Array.isArray(value)) {
105
111
  return value.map(function (item) { return item.name; }).join(', ');
106
112
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.540",
3
+ "version": "2.7.541",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",