pick explicitly fields for mutation (#2353)
This commit is contained in:
parent
1002a11f41
commit
636d6ce416
1 changed files with 6 additions and 2 deletions
|
@ -63,12 +63,16 @@ export const ChannelCreateView = ({}) => {
|
||||||
warehousesToDisplay,
|
warehousesToDisplay,
|
||||||
currencyCode,
|
currencyCode,
|
||||||
allocationStrategy,
|
allocationStrategy,
|
||||||
...rest
|
name,
|
||||||
|
slug,
|
||||||
|
defaultCountry,
|
||||||
}: FormData) => {
|
}: FormData) => {
|
||||||
const createChannelMutation = createChannel({
|
const createChannelMutation = createChannel({
|
||||||
variables: {
|
variables: {
|
||||||
input: {
|
input: {
|
||||||
...rest,
|
defaultCountry,
|
||||||
|
name,
|
||||||
|
slug,
|
||||||
currencyCode: currencyCode.toUpperCase(),
|
currencyCode: currencyCode.toUpperCase(),
|
||||||
addShippingZones: shippingZonesIdsToAdd,
|
addShippingZones: shippingZonesIdsToAdd,
|
||||||
addWarehouses: warehousesIdsToAdd,
|
addWarehouses: warehousesIdsToAdd,
|
||||||
|
|
Loading…
Reference in a new issue