Skip to content

Commit

Permalink
Merge pull request #61 from ashbuilds/fix/undefined-object-translations
Browse files Browse the repository at this point in the history
[fix] undefined or null object issue
  • Loading branch information
ashbuilds authored Jan 27, 2025
2 parents c5fb752 + ea94616 commit e495890
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ai-stack/payloadcms",
"version": "3.2.4-beta",
"version": "3.2.5-beta",
"private": false,
"bugs": "https://github.com/ashbuilds/payload-ai/issues",
"repository": "https://github.com/ashbuilds/payload-ai",
Expand Down
5 changes: 2 additions & 3 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ const sponsorMessage = `
║ ║
║ Thank you again, and happy building! ║
╚═══════════════════════════════════════════════════════════════╝
`;

`

const payloadAiPlugin =
(pluginConfig: PluginConfig) =>
Expand Down Expand Up @@ -109,7 +108,7 @@ const payloadAiPlugin =
i18n: {
...(incomingConfig.i18n || {}),
translations: {
...deepMerge(translations, incomingConfig.i18n?.translations),
...deepMerge(translations, incomingConfig.i18n?.translations ?? {}),
},
},
}
Expand Down

0 comments on commit e495890

Please sign in to comment.