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: ensure tab label and description are serializable #10115

Merged

Conversation

akhrarovsaid
Copy link
Contributor

@akhrarovsaid akhrarovsaid commented Dec 21, 2024

What?

This PR fixes an issue where assigning a label or description function to a tab would cause a runtime error due to passing a function to a client component.

Why?

To prevent runtime errors when using non-static designations.

How?

By properly evaluating label and description functions prior to assignment to their clientTab counterpart.

Fixes #10114

Before:
image

After:
image

@DanRibbens DanRibbens enabled auto-merge (squash) December 22, 2024 00:20
@DanRibbens DanRibbens merged commit 68b5f61 into payloadcms:main Dec 22, 2024
66 checks passed
Copy link
Contributor

🚀 This is included in version v3.12.0

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

Successfully merging this pull request may close these issues.

Assigning a label or description function to a tab causes runtime error
2 participants