Skip to content

Commit

Permalink
fix(seo): pass hasGenerateDescription properly (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
r1tsuu authored May 23, 2024
1 parent 8cba301 commit f5f5cc8
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "payload-enchants",
"version": "1.1.22",
"version": "1.1.23",
"private": true,
"description": "",
"keywords": [],
Expand Down
2 changes: 1 addition & 1 deletion packages/better-localized-fields/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@payload-enchants/better-localized-fields",
"version": "1.1.22",
"version": "1.1.23",
"private": false,
"bugs": "https://github.com/r1tsuu/payload-enchants/issues",
"repository": "https://github.com/r1tsuu/payload-enchants",
Expand Down
2 changes: 1 addition & 1 deletion packages/better-use-as-title/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@payload-enchants/better-use-as-title",
"version": "1.1.22",
"version": "1.1.23",
"private": false,
"bugs": "https://github.com/r1tsuu/payload-enchants/issues",
"repository": "https://github.com/r1tsuu/payload-enchants",
Expand Down
2 changes: 1 addition & 1 deletion packages/bump-payload/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bump-payload",
"version": "1.1.22",
"version": "1.1.23",
"private": false,
"bugs": "https://github.com/r1tsuu/payload-enchants/issues",
"repository": "https://github.com/r1tsuu/payload-enchants",
Expand Down
2 changes: 1 addition & 1 deletion packages/cached-local-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@payload-enchants/cached-local-api",
"version": "1.1.22",
"version": "1.1.23",
"private": false,
"bugs": "https://github.com/r1tsuu/payload-enchants/issues",
"repository": "https://github.com/r1tsuu/payload-enchants",
Expand Down
2 changes: 1 addition & 1 deletion packages/docs-reorder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@payload-enchants/docs-reorder",
"version": "1.1.22",
"version": "1.1.23",
"private": false,
"bugs": "https://github.com/r1tsuu/payload-enchants/issues",
"repository": "https://github.com/r1tsuu/payload-enchants",
Expand Down
2 changes: 1 addition & 1 deletion packages/seo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@payload-enchants/seo",
"version": "1.1.22",
"version": "1.1.23",
"private": false,
"bugs": "https://github.com/r1tsuu/payload-enchants/issues",
"repository": "https://github.com/r1tsuu/payload-enchants",
Expand Down
5 changes: 3 additions & 2 deletions packages/seo/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ const seo =
Component: MetaDescription,
sanitizeServerOnlyProps: true,
toMergeIntoProps: {
hasGenerateTitleAi:
hasGenerateDescriptionAi:
typeof pluginConfig.generateDescriptionAi === 'function' &&
pluginConfig.openaiApiKey,
hasGenerateTitleFn: typeof pluginConfig?.generateDescription === 'function',
hasGenerateDescriptionFn:
typeof pluginConfig?.generateDescription === 'function',
},
}),
},
Expand Down
2 changes: 1 addition & 1 deletion packages/translator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@payload-enchants/translator",
"version": "1.1.22",
"version": "1.1.23",
"private": false,
"bugs": "https://github.com/r1tsuu/payload-enchants/issues",
"repository": "https://github.com/r1tsuu/payload-enchants",
Expand Down
2 changes: 1 addition & 1 deletion test/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "test",
"version": "1.1.22",
"version": "1.1.23",
"private": true,
"type": "module",
"scripts": {
Expand Down

0 comments on commit f5f5cc8

Please sign in to comment.