Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors on restore version #186

Open
thompsonsj opened this issue Aug 14, 2024 · 1 comment
Open

Errors on restore version #186

thompsonsj opened this issue Aug 14, 2024 · 1 comment

Comments

@thompsonsj
Copy link
Owner

Tried to restore a version from a different locale to the source locale - in case that matters.

[2024-08-14T10:02:03] | (payload): TypeError: doc[field.name].map is not a function
-- | --
[2024-08-14T10:02:03] | at /workspace/node_modules/payload-crowdin-sync/src/lib/utilities/index.js:375:18
[2024-08-14T10:02:03] | at Array.forEach (<anonymous>)
[2024-08-14T10:02:03] | at buildCrowdinJsonObject (/workspace/node_modules/payload-crowdin-sync/src/lib/utilities/index.js:361:20)
[2024-08-14T10:02:03] | at /workspace/node_modules/payload-crowdin-sync/src/lib/utilities/index.js:396:78
[2024-08-14T10:02:03] | at Array.map (<anonymous>)
[2024-08-14T10:02:03] | at /workspace/node_modules/payload-crowdin-sync/src/lib/utilities/index.js:394:18
[2024-08-14T10:02:03] | at Array.forEach (<anonymous>)
[2024-08-14T10:02:03] | at buildCrowdinJsonObject (/workspace/node_modules/payload-crowdin-sync/src/lib/utilities/index.js:361:20)
[2024-08-14T10:02:03] | at /workspace/node_modules/payload-crowdin-sync/src/lib/hooks/collections/afterChange.js:89:72
[2024-08-14T10:02:03] | at Generator.next (<anonymous>)
@thompsonsj
Copy link
Owner Author

Workaround for now - disable the plugin when restoring the version. e.g. comment out the API token from .env.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant