refinementList show only child category name

I have some menus created with refinementList and I’m trying to display only the child category name and not the whole path. Anyone know if it’s possible? I searched the forum and didn’t find any similar posts. I’m leaving the Sandbox link…

I got it with transformItems. I hope this code can help someone with the same issue.

transformItems(items) {
return => ({
highlighted: (item.label).split(“>”)[1] ,

1 Like