I'm trying to add a search bar and I have this so far
searchPlugin({
collections: ['products'],
searchOverrides: {
fields: ({ defaultFields }) => {
return [
...defaultFields,
{
name: 'description',
type: 'textarea',
label: 'Description',
},
]
},
},
}),
When I added the
({ defaultFields }) => {
It turns red (underlined) in visual studio code and my website dosn't load anymore. I have no clue how to fix this.