Updating messages, cleanup

This commit is contained in:
inpsyde-maticluznar 2024-12-20 09:58:15 +01:00
parent 80853c6fd4
commit f4b1a6e392
No known key found for this signature in database
GPG key ID: D005973F231309F6
3 changed files with 20 additions and 19 deletions

View file

@ -87,9 +87,9 @@ const commonReducer = createReducer( defaultTransient, defaultPersistent, {
[ ACTION_TYPES.HYDRATE ]: ( state, payload ) => {
const newState = setPersistent( state, payload.data );
console.log( state, payload );
// Populate read-only properties.
[ 'wooSettings', 'merchant', 'webhooks' ].forEach( ( key ) => {
[ 'wooSettings', 'merchant' ].forEach( ( key ) => {
if ( ! payload[ key ] ) {
return;
}