Skip to content

Commit

Permalink
long text null check
Browse files Browse the repository at this point in the history
  • Loading branch information
fullcolorcoder committed Aug 15, 2024
1 parent b335958 commit 8aa9b48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions express/blocks/long-text/long-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ export default function decorate(block) {
block.remove();
}
}
if (block.querySelector('p').textContent === 'null'
|| block.querySelector('p').textContent === null) {
block.querySelector('p').remove();
}
}

0 comments on commit 8aa9b48

Please sign in to comment.