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:
Ansgar Prause authored and GitHub committed 2022-04-10 19:20:33 +08:00
1 parent fa3b95c2e1
commit 3390aa12b8
1 file changed
+1 -1
+1 -1
View File
@@ -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}>