Fixes inability to update site settings (#2228)
This commit is contained in:
parent
6108c8a33c
commit
bf4b5f70a7
4 changed files with 1 additions and 6 deletions
|
@ -14201,7 +14201,7 @@ export type ShippingZonesCountQueryHookResult = ReturnType<typeof useShippingZon
|
|||
export type ShippingZonesCountLazyQueryHookResult = ReturnType<typeof useShippingZonesCountLazyQuery>;
|
||||
export type ShippingZonesCountQueryResult = Apollo.QueryResult<Types.ShippingZonesCountQuery, Types.ShippingZonesCountQueryVariables>;
|
||||
export const ShopSettingsUpdateDocument = gql`
|
||||
mutation ShopSettingsUpdate($shopSettingsInput: ShopSettingsInput!, $addressInput: AddressInput, $isCloudInstance: Boolean!) {
|
||||
mutation ShopSettingsUpdate($shopSettingsInput: ShopSettingsInput!, $addressInput: AddressInput) {
|
||||
shopSettingsUpdate(input: $shopSettingsInput) {
|
||||
errors {
|
||||
...ShopError
|
||||
|
@ -14241,7 +14241,6 @@ export type ShopSettingsUpdateMutationFn = Apollo.MutationFunction<Types.ShopSet
|
|||
* variables: {
|
||||
* shopSettingsInput: // value for 'shopSettingsInput'
|
||||
* addressInput: // value for 'addressInput'
|
||||
* isCloudInstance: // value for 'isCloudInstance'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
|
|
|
@ -8175,7 +8175,6 @@ export type ShippingZonesCountQuery = { __typename: 'Query', shippingZones: { __
|
|||
export type ShopSettingsUpdateMutationVariables = Exact<{
|
||||
shopSettingsInput: ShopSettingsInput;
|
||||
addressInput?: InputMaybe<AddressInput>;
|
||||
isCloudInstance: Scalars['Boolean'];
|
||||
}>;
|
||||
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@ export const shopSettingsUpdate = gql`
|
|||
mutation ShopSettingsUpdate(
|
||||
$shopSettingsInput: ShopSettingsInput!
|
||||
$addressInput: AddressInput
|
||||
$isCloudInstance: Boolean!
|
||||
) {
|
||||
shopSettingsUpdate(input: $shopSettingsInput) {
|
||||
errors {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { WindowTitle } from "@saleor/components/WindowTitle";
|
||||
import { IS_CLOUD_INSTANCE } from "@saleor/config";
|
||||
import {
|
||||
CountryCode,
|
||||
useShopSettingsUpdateMutation,
|
||||
|
@ -79,7 +78,6 @@ export const SiteSettings: React.FC<SiteSettingsProps> = () => {
|
|||
reserveStockDurationAuthenticatedUser:
|
||||
data.reserveStockDurationAuthenticatedUser || null,
|
||||
},
|
||||
isCloudInstance: IS_CLOUD_INSTANCE,
|
||||
},
|
||||
}),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue