woocommerce/plugins/woocommerce-admin/client/wc-api/settings/mutations.js

11 lines
221 B
JavaScript

/** @format */
const updateSettings = operations => settingFields => {
const resourceKey = 'settings';
operations.update( [ resourceKey ], { [ resourceKey ]: settingFields } );
};
export default {
updateSettings,
};