@alfresco/adf-process-services-cloud 8.4.0-21841784975 → 8.4.0-21865990819
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.
|
@@ -8197,16 +8197,10 @@ class DropdownCloudWidgetComponent extends WidgetComponent {
|
|
|
8197
8197
|
value = this.field?.value;
|
|
8198
8198
|
}
|
|
8199
8199
|
else if (this.field?.value && typeof this.field?.value === 'object') {
|
|
8200
|
-
|
|
8201
|
-
if (obj.id === DEFAULT_OPTION.id || obj.id === '' || obj.id === undefined) {
|
|
8202
|
-
value = null;
|
|
8203
|
-
}
|
|
8204
|
-
else {
|
|
8205
|
-
value = { id: obj.id, name: obj.name };
|
|
8206
|
-
}
|
|
8200
|
+
value = { id: this.field?.value.id, name: this.field?.value.name };
|
|
8207
8201
|
}
|
|
8208
|
-
else if (this.field.value === null
|
|
8209
|
-
value =
|
|
8202
|
+
else if (this.field.value === null) {
|
|
8203
|
+
value = this.field.value;
|
|
8210
8204
|
}
|
|
8211
8205
|
else {
|
|
8212
8206
|
value = { id: this.field?.value, name: '' };
|
|
@@ -8508,10 +8502,6 @@ class DropdownCloudWidgetComponent extends WidgetComponent {
|
|
|
8508
8502
|
return event.field.type === FormFieldTypes.DROPDOWN;
|
|
8509
8503
|
}
|
|
8510
8504
|
setOptionValue(option, field) {
|
|
8511
|
-
if (option == null) {
|
|
8512
|
-
field.value = undefined;
|
|
8513
|
-
return;
|
|
8514
|
-
}
|
|
8515
8505
|
if (Array.isArray(option) || field.hasMultipleValues) {
|
|
8516
8506
|
field.value = option;
|
|
8517
8507
|
return;
|