@integry/sdk 4.6.21 → 4.6.22
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/package.json
CHANGED
|
@@ -283,7 +283,7 @@ const MultipurposeField = (props: MultipurposeFieldProps) => {
|
|
|
283
283
|
tags.forEach((tag) => {
|
|
284
284
|
const tagValue = tag.replace(/{|}/g, '');
|
|
285
285
|
const tagValueParts = tagValue.split('.');
|
|
286
|
-
|
|
286
|
+
let tagData = (activityOutputDataRaw || []).find((element: any) => {
|
|
287
287
|
return (
|
|
288
288
|
element.value === tagValue ||
|
|
289
289
|
checkIfTagExists(element.value, tagValue)
|
|
@@ -296,6 +296,17 @@ const MultipurposeField = (props: MultipurposeFieldProps) => {
|
|
|
296
296
|
: tagValue,
|
|
297
297
|
title: tagValue,
|
|
298
298
|
};
|
|
299
|
+
if (tagsTree) {
|
|
300
|
+
// this component has been called with explicit tagTree hence we don't need to rely on activity output data any more.
|
|
301
|
+
tagData = {
|
|
302
|
+
value: tagValue,
|
|
303
|
+
text:
|
|
304
|
+
tagValueParts.length > 0
|
|
305
|
+
? prettifyString(tagValueParts[tagValueParts.length - 1])
|
|
306
|
+
: tagValue,
|
|
307
|
+
title: tagValue,
|
|
308
|
+
};
|
|
309
|
+
}
|
|
299
310
|
if (tagData) {
|
|
300
311
|
newValue = newValue?.replace(
|
|
301
312
|
tag,
|