mirror of
https://github.com/strapi/strapi.git
synced 2025-11-15 17:49:57 +00:00
Merge pull request #14423 from strapi/feature/relations-main-view-publish
EditViewDataManagerProvider: Fix publish button state comparison
This commit is contained in:
commit
5e4ac5659a
@ -199,8 +199,8 @@ const reducer = (state, action) =>
|
|||||||
const { connect, disconnect, ...currentState } = state.modifiedData?.[name] ?? {};
|
const { connect, disconnect, ...currentState } = state.modifiedData?.[name] ?? {};
|
||||||
|
|
||||||
acc[name] = {
|
acc[name] = {
|
||||||
...(initialValues?.[name] ?? {}),
|
|
||||||
...(currentState ?? {}),
|
...(currentState ?? {}),
|
||||||
|
...(initialValues?.[name] ?? {}),
|
||||||
};
|
};
|
||||||
|
|
||||||
return acc;
|
return acc;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user