Add missing allowed item key for comparing
[MAILPOET-3219]
This commit is contained in:
@@ -18,8 +18,7 @@ interface WooCommerceFormItem extends FormItem {
|
|||||||
interface EmailFormItem extends FormItem {
|
interface EmailFormItem extends FormItem {
|
||||||
action?: string;
|
action?: string;
|
||||||
newsletter_id?: string;
|
newsletter_id?: string;
|
||||||
category_id?: string;
|
link_id?: string;
|
||||||
product_id?: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type AnyFormItem = WordpressRoleFormItem | WooCommerceFormItem | EmailFormItem;
|
type AnyFormItem = WordpressRoleFormItem | WooCommerceFormItem | EmailFormItem;
|
||||||
@@ -34,7 +33,7 @@ let previousFormItem: AnyFormItem | undefined;
|
|||||||
let previousResult: Result | undefined;
|
let previousResult: Result | undefined;
|
||||||
|
|
||||||
// Names of keys from interface FormItem
|
// Names of keys from interface FormItem
|
||||||
const allowedItemKeys: string[] = ['wordpressRole', 'segmentType', 'action', 'newsletter_id', 'category_id', 'product_id'];
|
const allowedItemKeys: string[] = ['wordpressRole', 'segmentType', 'action', 'newsletter_id', 'category_id', 'product_id', 'link_id'];
|
||||||
|
|
||||||
function loadCount(formItem: AnyFormItem): Promise<Result | void> {
|
function loadCount(formItem: AnyFormItem): Promise<Result | void> {
|
||||||
// We don't want to use properties like name and description
|
// We don't want to use properties like name and description
|
||||||
|
Reference in New Issue
Block a user