I’m trying to edit the facet options using the transformOptions
prop on the <StandardFacet />
component like so:
<Facets>
<StandardFacet
fieldId="acceptingNewPatients"
showOptionCounts={false}
collapsible={false}
transformOptions={(options: DisplayableFacet["options"]) => {
console.log(options);
options[0].displayName = "Yes";
return [options[0]];
}}
/>
</Facets>
I can’t edit displayName
because it’s a read-only property. I was wondering if there was any way to edit these properties so they show properly on the frontend.