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

fix(ui) When opening drawer(like media drawer) error is written to the log #8223

Conversation

tsemachh
Copy link

This fixes #7497
It's a small fix which will clear our logs at last Quoting from the issue:

When opening drawer(like media drawer) error is written to the log.
This relates to next fixed issue
(https://github.com/payloadcms/payload/pull/7117/files)
In file:
packages/ui/src/utilities/buildFormState.ts - Lines 70-74
` const schemaPathSegments = schemaPath && schemaPath.split('.')

let fieldSchema: Field[]

if (schemaPathSegments.length === 1) {
`
What happens is the first line fixes case where schemaPath is null | undefined,
now the last line there fails of schemaPathSegments is null | undefined

It's reported in few issues , I am not trying to resolve why next.js is not stopping the reques processing , just don't want to see it in the logs

@tsemachh tsemachh changed the title Export LivePreviewView and LivePreviewClient fix(ui) When opening drawer(like media drawer) error is written to the log Sep 15, 2024
@tsemachh
Copy link
Author

I see it's fixed now - thank you

@tsemachh tsemachh closed this Sep 19, 2024
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

Successfully merging this pull request may close these issues.

1 participant