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 ShippingZonesCountLazyQueryHookResult = ReturnType<typeof useShippingZonesCountLazyQuery>;
|
||||||
export type ShippingZonesCountQueryResult = Apollo.QueryResult<Types.ShippingZonesCountQuery, Types.ShippingZonesCountQueryVariables>;
|
export type ShippingZonesCountQueryResult = Apollo.QueryResult<Types.ShippingZonesCountQuery, Types.ShippingZonesCountQueryVariables>;
|
||||||
export const ShopSettingsUpdateDocument = gql`
|
export const ShopSettingsUpdateDocument = gql`
|
||||||
mutation ShopSettingsUpdate($shopSettingsInput: ShopSettingsInput!, $addressInput: AddressInput, $isCloudInstance: Boolean!) {
|
mutation ShopSettingsUpdate($shopSettingsInput: ShopSettingsInput!, $addressInput: AddressInput) {
|
||||||
shopSettingsUpdate(input: $shopSettingsInput) {
|
shopSettingsUpdate(input: $shopSettingsInput) {
|
||||||
errors {
|
errors {
|
||||||
...ShopError
|
...ShopError
|
||||||
|
@ -14241,7 +14241,6 @@ export type ShopSettingsUpdateMutationFn = Apollo.MutationFunction<Types.ShopSet
|
||||||
* variables: {
|
* variables: {
|
||||||
* shopSettingsInput: // value for 'shopSettingsInput'
|
* shopSettingsInput: // value for 'shopSettingsInput'
|
||||||
* addressInput: // value for 'addressInput'
|
* addressInput: // value for 'addressInput'
|
||||||
* isCloudInstance: // value for 'isCloudInstance'
|
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -8175,7 +8175,6 @@ export type ShippingZonesCountQuery = { __typename: 'Query', shippingZones: { __
|
||||||
export type ShopSettingsUpdateMutationVariables = Exact<{
|
export type ShopSettingsUpdateMutationVariables = Exact<{
|
||||||
shopSettingsInput: ShopSettingsInput;
|
shopSettingsInput: ShopSettingsInput;
|
||||||
addressInput?: InputMaybe<AddressInput>;
|
addressInput?: InputMaybe<AddressInput>;
|
||||||
isCloudInstance: Scalars['Boolean'];
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@ export const shopSettingsUpdate = gql`
|
||||||
mutation ShopSettingsUpdate(
|
mutation ShopSettingsUpdate(
|
||||||
$shopSettingsInput: ShopSettingsInput!
|
$shopSettingsInput: ShopSettingsInput!
|
||||||
$addressInput: AddressInput
|
$addressInput: AddressInput
|
||||||
$isCloudInstance: Boolean!
|
|
||||||
) {
|
) {
|
||||||
shopSettingsUpdate(input: $shopSettingsInput) {
|
shopSettingsUpdate(input: $shopSettingsInput) {
|
||||||
errors {
|
errors {
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import { WindowTitle } from "@saleor/components/WindowTitle";
|
import { WindowTitle } from "@saleor/components/WindowTitle";
|
||||||
import { IS_CLOUD_INSTANCE } from "@saleor/config";
|
|
||||||
import {
|
import {
|
||||||
CountryCode,
|
CountryCode,
|
||||||
useShopSettingsUpdateMutation,
|
useShopSettingsUpdateMutation,
|
||||||
|
@ -79,7 +78,6 @@ export const SiteSettings: React.FC<SiteSettingsProps> = () => {
|
||||||
reserveStockDurationAuthenticatedUser:
|
reserveStockDurationAuthenticatedUser:
|
||||||
data.reserveStockDurationAuthenticatedUser || null,
|
data.reserveStockDurationAuthenticatedUser || null,
|
||||||
},
|
},
|
||||||
isCloudInstance: IS_CLOUD_INSTANCE,
|
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue