Switch template registration to use register_block_template

[MAILPOET-6356]
This commit is contained in:
Rostislav Wolny
2024-12-13 15:59:42 +01:00
committed by Rostislav Wolný
parent 62b77b724c
commit 2fc0ad3c9e
5 changed files with 40 additions and 16 deletions

View File

@@ -251,7 +251,7 @@ export const getEmailTemplates = createRegistrySelector(
?.filter(
( template ) =>
// @ts-expect-error Missing property in type
template.theme === 'mailpoet/mailpoet'
template.plugin === 'mailpoet'
)
);