From 10f19a144544bdb592bb76fd0b6a3a991a5cc5db Mon Sep 17 00:00:00 2001 From: Espen Hovlandsdal Date: Fri, 26 Apr 2024 14:48:25 -0700 Subject: [PATCH] fix(cli): remove comments from moviedb template, hide location field (#6488) --- .../@sanity/cli/src/actions/init-project/templates/moviedb.ts | 3 --- .../@sanity/cli/templates/moviedb/schemaTypes/screening.js | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/@sanity/cli/src/actions/init-project/templates/moviedb.ts b/packages/@sanity/cli/src/actions/init-project/templates/moviedb.ts index d3b2d9258f3..79a96cb7814 100644 --- a/packages/@sanity/cli/src/actions/init-project/templates/moviedb.ts +++ b/packages/@sanity/cli/src/actions/init-project/templates/moviedb.ts @@ -4,7 +4,6 @@ const configTemplate = ` import {defineConfig} from 'sanity' import {structureTool} from 'sanity/structure' import {visionTool} from '@sanity/vision' -//import {googleMapsInput} from '@sanity/google-maps-input' import {schemaTypes} from './schemaTypes' export default defineConfig({ @@ -17,7 +16,6 @@ export default defineConfig({ plugins: [ structureTool(), visionTool(), - //googleMapsInput(), ], schema: { @@ -31,7 +29,6 @@ const movieTemplate: ProjectTemplate = { importPrompt: 'Add a sampling of sci-fi movies to your dataset on the hosted backend?', datasetUrl: 'https://public.sanity.io/moviesdb-2018-03-06.tar.gz', dependencies: { - //'@sanity/google-maps-input': '^2.27.0', 'react-icons': '^3.11.0', }, } diff --git a/packages/@sanity/cli/templates/moviedb/schemaTypes/screening.js b/packages/@sanity/cli/templates/moviedb/schemaTypes/screening.js index 1292c783d58..4c5b784b63f 100644 --- a/packages/@sanity/cli/templates/moviedb/schemaTypes/screening.js +++ b/packages/@sanity/cli/templates/moviedb/schemaTypes/screening.js @@ -31,6 +31,7 @@ export default defineType({ title: 'Location', type: 'geopoint', description: 'Where will the screening take place?', + hidden: true, }), defineField({ name: 'beginAt',