Open
Description
Describe the Bug
When creating a link, the form should conditionally show the URL or related entity. However, this is not working any more since 3.22.
![Image](https://private-user-images.githubusercontent.com/1831098/411881277-26baaa96-8e4d-467d-bd48-59f70b4db836.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NTI4MzEsIm5iZiI6MTczOTU1MjUzMSwicGF0aCI6Ii8xODMxMDk4LzQxMTg4MTI3Ny0yNmJhYWE5Ni04ZTRkLTQ2N2QtYmQ0OC01OWY3MGI0ZGI4MzYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTRUMTcwMjExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YWQ2NTgwN2UyYjBlMjE2OTM0NzlhODk0YjJmN2QxNzhhNGY0NzBmY2UzYjhjYWZiMGU5OGRhZWEzYmJiZDA2NiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.pdnPm0t1kVrmwpmadIRrCwdwvrf4j8utfNqQjaY02qA)
Link to the code that reproduces this issue
https://github.com/johannesspohr/payload-link-bug-reproduction
Reproduction Steps
The repo is just the result of create-payload-app
with the website template without any modifications
- create a Page and insert a link
- select "Internal link"
- the field should change to Entity, but it stays "URL"
Which area(s) are affected? (Select all that apply)
area: ui
Environment Info
Payload: 3.22
Next: 15.1.7