@integry/sdk 4.7.3 → 4.7.5
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
|
@@ -296,7 +296,7 @@ const MultipurposeField = (props: MultipurposeFieldProps) => {
|
|
|
296
296
|
};
|
|
297
297
|
|
|
298
298
|
useEffect(() => {
|
|
299
|
-
if (value) {
|
|
299
|
+
if (value && !isArray) {
|
|
300
300
|
handleOnChange(value, true);
|
|
301
301
|
}
|
|
302
302
|
}, [fieldId]);
|
|
@@ -681,7 +681,9 @@ const MultipurposeField = (props: MultipurposeFieldProps) => {
|
|
|
681
681
|
? searchValue
|
|
682
682
|
: tempPlaceholder
|
|
683
683
|
? ''
|
|
684
|
-
: currentValue
|
|
684
|
+
: currentValue
|
|
685
|
+
? currentValue
|
|
686
|
+
: '',
|
|
685
687
|
}
|
|
686
688
|
: {}}
|
|
687
689
|
/>
|
|
@@ -78,7 +78,7 @@ const transformTemplateFieldsToProperties = (templateFields: any[]) => {
|
|
|
78
78
|
placeholder: tf.placeholder,
|
|
79
79
|
regex: tf.regex || '',
|
|
80
80
|
regex_error_message: tf.regex_msg || 'Invalid input.',
|
|
81
|
-
ui_field: {
|
|
81
|
+
ui_field: tf?.ui_field || {
|
|
82
82
|
type: tf.type || 'TEXTFIELD',
|
|
83
83
|
options: [], // Populate if needed
|
|
84
84
|
data_source: null, // Adjust if needed
|