mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 11:25:17 +00:00
EditViewDataManagerProvider: Fix publish button state comparison
This commit is contained in:
parent
b601daa36b
commit
0c248d0b3a
@ -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