From 636d6ce4167d9c2dddf9e2d4a494336095279c3a Mon Sep 17 00:00:00 2001 From: Patryk Andrzejewski Date: Wed, 5 Oct 2022 12:35:37 +0200 Subject: [PATCH] pick explicitly fields for mutation (#2353) --- src/channels/views/ChannelCreate/ChannelCreate.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/channels/views/ChannelCreate/ChannelCreate.tsx b/src/channels/views/ChannelCreate/ChannelCreate.tsx index e250ffe73..f351a3fa6 100644 --- a/src/channels/views/ChannelCreate/ChannelCreate.tsx +++ b/src/channels/views/ChannelCreate/ChannelCreate.tsx @@ -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,