From e8abba0bffc34d911d098b3af7b629c98fa9718b Mon Sep 17 00:00:00 2001 From: Burak Tokak Date: Sat, 5 Dec 2020 18:09:25 +0300 Subject: [PATCH 1/2] add "title" as the source for "slug" --- examples/cms-sanity/schemas/schema.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/cms-sanity/schemas/schema.js b/examples/cms-sanity/schemas/schema.js index 6295895fed2aa..087d2423284c8 100644 --- a/examples/cms-sanity/schemas/schema.js +++ b/examples/cms-sanity/schemas/schema.js @@ -71,6 +71,9 @@ export default createSchema({ name: 'slug', title: 'Slug', type: 'slug', + options: { + source: "title" + } }, ], }, From 311e54c646c267f50135a53ced35953385a4abe5 Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Mon, 25 Jan 2021 14:40:34 +0100 Subject: [PATCH 2/2] Fix linting --- examples/cms-sanity/schemas/schema.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/cms-sanity/schemas/schema.js b/examples/cms-sanity/schemas/schema.js index 087d2423284c8..fb4dcf503a7df 100644 --- a/examples/cms-sanity/schemas/schema.js +++ b/examples/cms-sanity/schemas/schema.js @@ -72,8 +72,8 @@ export default createSchema({ title: 'Slug', type: 'slug', options: { - source: "title" - } + source: 'title', + }, }, ], },