Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
fix: properly spreads collection fields into non-tabbed configs #50 (#51
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jacobsfletch authored May 16, 2023
1 parent 4a863c2 commit 7f385c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const seo =

return {
...collection,
fields: seoFields,
fields: [...(collection?.fields || []), ...seoFields],
}
}

Expand Down

0 comments on commit 7f385c1

Please sign in to comment.