@integry/sdk 4.5.35 → 4.5.37
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
|
@@ -150,6 +150,7 @@ const MultipurposeField = (props: MultipurposeFieldProps) => {
|
|
|
150
150
|
|
|
151
151
|
useEffect(() => {
|
|
152
152
|
const textfield = inputRef.current;
|
|
153
|
+
const scalarValue = Array.isArray(value) ? value[0] : value;
|
|
153
154
|
if (textfield && activityOutputDataRaw.length) {
|
|
154
155
|
const el: any = document.getElementById(`tagify_${fieldId}`);
|
|
155
156
|
if (el && el.dataset.tagifyFieldId !== fieldId) {
|
|
@@ -177,12 +178,12 @@ const MultipurposeField = (props: MultipurposeFieldProps) => {
|
|
|
177
178
|
} else if (
|
|
178
179
|
textfield &&
|
|
179
180
|
!activityOutputDataRaw.length &&
|
|
180
|
-
!
|
|
181
|
-
!
|
|
181
|
+
!scalarValue?.startsWith('{') &&
|
|
182
|
+
!scalarValue?.endsWith('}')
|
|
182
183
|
) {
|
|
183
184
|
const el: any = document.getElementById(`tagify_${fieldId}`);
|
|
184
185
|
if (el && el.dataset.tagifyFieldId !== fieldId) {
|
|
185
|
-
el.value = getDefaultTagifyValue(
|
|
186
|
+
el.value = getDefaultTagifyValue(scalarValue || '');
|
|
186
187
|
el.dataset.tagifyFieldId = fieldId;
|
|
187
188
|
}
|
|
188
189
|
}
|
|
@@ -61,7 +61,7 @@ const transformTemplateFieldsToProperties = (templateFields: any[]) => {
|
|
|
61
61
|
const properties: { [key: string]: FieldDetails } = {};
|
|
62
62
|
|
|
63
63
|
templateFields.forEach((tf) => {
|
|
64
|
-
properties[tf.id] = {
|
|
64
|
+
properties[tf.id || tf.machine_name] = {
|
|
65
65
|
meta: {
|
|
66
66
|
title: tf.title,
|
|
67
67
|
description_for_users: tf.description,
|