Tab condition based on tab.id? #12894
TheCodeDestroyer
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I had some issues with conditional tabs in production. While navigating through documents, after some time, all tabs were visible, but the fields inside were gone.
I had no issues locally or with a built app, this was only happening in the production environment, which was really weird. If I did a hard refresh, the problem was fixed, but after navigating through documents again, the issue came back.
So I did a quick dig through the UI package Tab field code and found this:
payload/packages/ui/src/fields/Tabs/index.tsx
Line 71 in 57f4fb6
After I added
ids to my tabs, the problem went away.Is this maybe a bug? Shouldn't it be based on
nameor did I miss something in the docs?Beta Was this translation helpful? Give feedback.
All reactions