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,
|
||||
currencyCode,
|
||||
allocationStrategy,
|
||||
...rest
|
||||
name,
|
||||
slug,
|
||||
defaultCountry,
|
||||
}: FormData) => {
|
||||
const createChannelMutation = createChannel({
|
||||
variables: {
|
||||
input: {
|
||||
...rest,
|
||||
defaultCountry,
|
||||
name,
|
||||
slug,
|
||||
currencyCode: currencyCode.toUpperCase(),
|
||||
addShippingZones: shippingZonesIdsToAdd,
|
||||
addWarehouses: warehousesIdsToAdd,
|
||||
|
|
Loading…
Reference in a new issue