From 21663a6057b84b79f73bdb1f7ab0fdecb5a95e88 Mon Sep 17 00:00:00 2001 From: efuller Date: Thu, 20 Jun 2024 12:44:10 -0400 Subject: [PATCH] A bit of code cleanup --- blocks/email-settings/edit.tsx | 3 ++- plugins/pre-publish-checks/index.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/blocks/email-settings/edit.tsx b/blocks/email-settings/edit.tsx index 03574fa8..484a2db2 100644 --- a/blocks/email-settings/edit.tsx +++ b/blocks/email-settings/edit.tsx @@ -82,7 +82,8 @@ export default function Edit() { const parsedContentFromTemplate = parse(content); - const emailSettingsBlockAlreadyPresent = parsedContentFromTemplate.filter((parsedBlock) => parsedBlock.name === 'wp-newsletter-builder/email-settings'); + const emailSettingsBlockAlreadyPresent = parsedContentFromTemplate + .filter((parsedBlock) => parsedBlock.name === 'wp-newsletter-builder/email-settings'); let newBlocks: BlockInstance[] = []; if (emailSettingsBlockAlreadyPresent.length === 0) { diff --git a/plugins/pre-publish-checks/index.php b/plugins/pre-publish-checks/index.php index 962e33e7..e572c854 100644 --- a/plugins/pre-publish-checks/index.php +++ b/plugins/pre-publish-checks/index.php @@ -1,6 +1,6 @@