Skip to content

Commit

Permalink
A bit of code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
efuller committed Jun 20, 2024
1 parent 6ae9b90 commit 21663a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion blocks/email-settings/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion plugins/pre-publish-checks/index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Adds the pre publish panel to the newsletter template.
* Adds the pre publish panel to the newsletter post type.
*
* This file will be copied to the assets build directory.
*
Expand Down

0 comments on commit 21663a6

Please sign in to comment.