update mutation and fixtures
This commit is contained in:
parent
d20b58dd79
commit
52cf01ed72
6 changed files with 6 additions and 4 deletions
|
@ -511,7 +511,8 @@ export const category: (
|
|||
}
|
||||
},
|
||||
seoDescription: null,
|
||||
seoTitle: null
|
||||
seoTitle: null,
|
||||
slug: "coffees"
|
||||
});
|
||||
export const errors = [
|
||||
{
|
||||
|
|
|
@ -167,5 +167,6 @@ export const collection: (
|
|||
},
|
||||
publicationDate: "2018-08-25T18:45:54.125Z",
|
||||
seoDescription: "",
|
||||
seoTitle: ""
|
||||
seoTitle: "",
|
||||
slug: "summer-collection"
|
||||
});
|
||||
|
|
|
@ -96,7 +96,6 @@ const SeoForm: React.FC<SeoFormProps> = props => {
|
|||
const toggleExpansion = () => setExpansionStatus(!expanded);
|
||||
const shouldDisplayHelperText = () => helperText && !expanded;
|
||||
|
||||
console.log({ slug });
|
||||
return (
|
||||
<Card>
|
||||
<CardTitle
|
||||
|
|
|
@ -253,6 +253,7 @@ export const product: (
|
|||
seoDescription: "Seo description",
|
||||
seoTitle: "Seo title",
|
||||
sku: "59661-34207",
|
||||
slug: "Borders",
|
||||
thumbnail: { __typename: "Image" as "Image", url: placeholderImage },
|
||||
url: "/example-url",
|
||||
variants: [
|
||||
|
|
|
@ -237,7 +237,6 @@ export interface ProductUpdateVariables {
|
|||
publicationDate?: any | null;
|
||||
category?: string | null;
|
||||
chargeTaxes: boolean;
|
||||
slug?: string | null;
|
||||
collections?: (string | null)[] | null;
|
||||
descriptionJson?: any | null;
|
||||
isPublished: boolean;
|
||||
|
|
|
@ -55,6 +55,7 @@ export function createUpdateHandler(
|
|||
description: data.seoDescription,
|
||||
title: data.seoTitle
|
||||
},
|
||||
slug: data.slug,
|
||||
visibleInListings: data.visibleInListings
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue