update mutation and fixtures

This commit is contained in:
Magdalena Markusik 2020-09-21 12:00:53 +02:00
parent d20b58dd79
commit 52cf01ed72
6 changed files with 6 additions and 4 deletions

View file

@ -511,7 +511,8 @@ export const category: (
}
},
seoDescription: null,
seoTitle: null
seoTitle: null,
slug: "coffees"
});
export const errors = [
{

View file

@ -167,5 +167,6 @@ export const collection: (
},
publicationDate: "2018-08-25T18:45:54.125Z",
seoDescription: "",
seoTitle: ""
seoTitle: "",
slug: "summer-collection"
});

View file

@ -96,7 +96,6 @@ const SeoForm: React.FC<SeoFormProps> = props => {
const toggleExpansion = () => setExpansionStatus(!expanded);
const shouldDisplayHelperText = () => helperText && !expanded;
console.log({ slug });
return (
<Card>
<CardTitle

View file

@ -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: [

View file

@ -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;

View file

@ -55,6 +55,7 @@ export function createUpdateHandler(
description: data.seoDescription,
title: data.seoTitle
},
slug: data.slug,
visibleInListings: data.visibleInListings
};