rerobe-js-orm 3.2.1 → 3.2.3
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.
|
@@ -31,7 +31,7 @@ class FormState extends Base_1.default {
|
|
|
31
31
|
const formField = this.fields[key];
|
|
32
32
|
if (formField.options) {
|
|
33
33
|
const optionsClone = formField.options;
|
|
34
|
-
const newOptions = optionsClone.concat(option);
|
|
34
|
+
const newOptions = this.utilities.uniqObjArray(optionsClone.concat(option), 'value');
|
|
35
35
|
formField.options = newOptions;
|
|
36
36
|
if (formField.onChangeHandler) {
|
|
37
37
|
formField.onChangeHandler(option.value);
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
declare type DeliveryResponse = {
|
|
2
|
+
isDelivered: boolean;
|
|
3
|
+
errorMsg: string;
|
|
4
|
+
};
|
|
1
5
|
declare type RecipientList = {
|
|
2
6
|
channel: string;
|
|
3
7
|
to: string;
|
|
4
8
|
isMerchant?: boolean;
|
|
9
|
+
deliveryResponse?: DeliveryResponse;
|
|
5
10
|
};
|
|
6
11
|
declare type CustomerNotificationAttributes = {
|
|
7
12
|
documentId: string;
|