In my project, I have a page type called Landing with the following slices in use:
In the page builder, I have the content ordered in the document:
I am calling the information on the frontend using
export default async function Page() {
const client = createClient();
const page = await client.getSingle('landing');
console.log(page.data);
return <SliceZone slices={page.data.slices} components={components} />;
}
Upon console.log(page), the following is seen:
{
slices: [
{
variation: 'default',
version: 'initial',
items: [Array],
primary: {},
id: 'featured_info$id',
slice_type: 'featured_info',
slice_label: null
},
{
variation: 'default',
version: 'initial',
items: [Array],
primary: {},
id: 'featured_collection$id',
slice_type: 'featured_collection',
slice_label: null
},
{ // Unknown article_collection object returned
id: 'article_collection$id',
slice_type: 'article_collection',
slice_label: null
}
],
I noticed that there is an extra slice type - article_collection being returned as part of the response. The slice type article_collection used to be part of the landing document but I have since removed it from the page. Changes have been pushed, but why is the slice type still showing up?

