Skip to content

Conversation

@tsemachh
Copy link
Contributor

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
Contributor 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