Publish Button State Not Updating After Relation Field Changes in Collection Type
### Node Version

20.11.0

### NPM/Yarn/PNPM Version

NPM 10.2.4

### Strapi Version

5.8.0

### Operating System

MacOS

### Database

SQLite

### Javascript or Typescript

Typescript

### Reproduction URL

_No response_

### Bug Description

When publishing a collection type that has changes in a relation field, the changes are successfully saved; however, the "Publish" button state does not update to reflect this. Additionally, attempting to leave the page prompts a confirmation dialog, asking whether the user wants to leave without saving, even though the changes have already been saved upon publishing.

### Steps to Reproduce

1. Create two collection types, Foo and Bar, with a many-to-many relationship.
2. Create a record for Foo and a record for Bar.
3. In one of the records (e.g., Foo), select a relation to the other model (e.g., relate it to a Bar record).
4. Publish the Foo record after making the relation change.

### Expected Behavior

1. After publishing the changes, the "Publish" button should update to reflect the saved state (e.g., become inactive or disabled).
2. No confirmation dialog should appear when attempting to leave the page, as the changes are already saved.

### Logs

```shell

```

### Code Snippets

_No response_

### Media

<img width="1061" alt="Image" src="https://github.com/user-attachments/assets/ce45714b-8619-4647-9e74-9ab30f4364c7" />

<img width="1056" alt="Image" src="https://github.com/user-attachments/assets/98c16185-763e-4606-9437-b0a454aebcfd" />

<img width="1061" alt="Image" src="https://github.com/user-attachments/assets/448175ec-6adf-4959-b3c1-b74ee7b8aec6" />


### Additional information

_No response_

### Confirmation Checklist

- [x] I have checked the existing [issues](https://github.com/strapi/strapi/issues) for duplicates.
- [x] I agree to follow this project's [Code of Conduct](https://github.com/strapi/strapi/blob/develop/CODE_OF_CONDUCT.md).