Remove usage of hardcoded mailpoet_email
string from the JS package
MAILPOET-6430
This commit is contained in:
committed by
Oluwaseun Olorunsola
parent
9a2502826f
commit
a49b978050
@@ -22,6 +22,7 @@ import {
|
||||
MailPoetEmailData,
|
||||
SendingPreviewStatus,
|
||||
storeName,
|
||||
editorCurrentPostType,
|
||||
} from '../../store';
|
||||
import { recordEvent, recordEventOnce } from '../../events';
|
||||
|
||||
@@ -43,7 +44,7 @@ function RawSendPreviewEmail() {
|
||||
|
||||
const [ mailpoetEmailData ] = useEntityProp(
|
||||
'postType',
|
||||
'mailpoet_email',
|
||||
editorCurrentPostType,
|
||||
'mailpoet_data'
|
||||
) as [ MailPoetEmailData, unknown, unknown ];
|
||||
|
||||
|
Reference in New Issue
Block a user