pds-dev-kit-web-test 2.7.539 → 2.7.540
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.
|
@@ -102,7 +102,6 @@ function Text(props) {
|
|
|
102
102
|
}
|
|
103
103
|
var value = queryContext.queryData[CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA];
|
|
104
104
|
if (Array.isArray(value)) {
|
|
105
|
-
// 각 객체에서 name만 추출하여 문자열 배열로 만든 뒤 결합
|
|
106
105
|
return value.map(function (item) { return item.name; }).join(', ');
|
|
107
106
|
}
|
|
108
107
|
if (CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA === 'saleStatus') {
|
|
@@ -173,6 +172,9 @@ function Text(props) {
|
|
|
173
172
|
return props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_TEXT;
|
|
174
173
|
};
|
|
175
174
|
var getTruncatedText = function (text) {
|
|
175
|
+
if (!text || typeof text !== 'string') {
|
|
176
|
+
return text;
|
|
177
|
+
}
|
|
176
178
|
var maxLength = props.CB_STYLE_PROP_TEXT.CB_STYLE_PROP_TEXT_SPEC_ELLIPSIS;
|
|
177
179
|
if (isRichText(text)) {
|
|
178
180
|
return domstringToPlain(text, maxLength, true);
|