Skip to content

Commit b0337df

Browse files
authored
Fix/issue 27 double rendering header (#28)
* fix(header): avoid double rendering * chore: version bump * chore: version bump
1 parent ca2a967 commit b0337df

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sensinum/astro-strapi-blocks",
3-
"version": "1.2.6",
3+
"version": "1.2.7",
44
"description": "Astro components for Strapi Block Field",
55
"keywords": ["astro", "strapi", "blocks", "components", "astro-component", "withastro", "astro-loader", "content-layer", "astro-integration"],
66
"type": "module",

src/components/blocks/StrapiBlockHeading.astro

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ const headingClasses = [
4646
data={sanitizedData[0]}
4747
/>
4848
)}
49-
{!block &&
50-
sanitizedData.map(({ text }: StrapiBlockTextItem) => {
51-
return <Tag class={headingClasses.join(" ")}>{text}</Tag>;
52-
})}
5349
{!block && (
5450
<Tag class={headingClasses.join(" ")}>
5551
{sanitizedData.map((item: StrapiBlockTextItem) => {

0 commit comments

Comments
 (0)