Fix groupBy usage in playground sidebar (#12642)
The groupBy function added in fa3b95c2e1
does not support the property name shorthand from lodash.
This commit is contained in:
1 parent
fa3b95c2e1
commit
3390aa12b8
1 file changed
+1
-1
@@ -10,7 +10,7 @@ export default function SidebarOptions({
|
||||
optionValues,
|
||||
onOptionValueChange,
|
||||
}) {
|
||||
const options = groupBy(availableOptions, "category");
|
||||
const options = groupBy(availableOptions, (option) => option.category);
|
||||
return categories.map((category) =>
|
||||
options[category] ? (
|
||||
<SidebarCategory key={category} title={category}>
|
||||
|
||||
Reference in new issue
Block a user