Remove no longer needed hotfixes
[MAILPOET-5138]
This commit is contained in:
committed by
John Oleksowicz
parent
d7ccd75744
commit
403ea6022e
@@ -26,9 +26,6 @@ export function FormTokenField({
|
||||
}: FormTokenFieldProps): JSX.Element {
|
||||
return (
|
||||
<WpFormTokenField
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
// The following error seems to be a mismatch. It claims the 'label' prop does not exist, but it does.
|
||||
label={label}
|
||||
value={value.map((item) => item.name)}
|
||||
suggestions={suggestions.map((item) => item.name)}
|
||||
|
@@ -48,9 +48,6 @@ export function RolePanel(): JSX.Element {
|
||||
<PlainBodyTitle title={__('Trigger settings', 'mailpoet')} />
|
||||
<SettingsInfoText />
|
||||
<FormTokenField
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
// The following error seems to be a mismatch. It claims the 'label' prop does not exist, but it does.
|
||||
label={__('When WordPress user role is:', 'mailpoet')}
|
||||
value={selected}
|
||||
suggestions={userRoles}
|
||||
|
Reference in New Issue
Block a user