From 3390aa12b8f4132c9b5b67fd75efb9b634d27f03 Mon Sep 17 00:00:00 2001 From: Ansgar Prause <4215065+ansgarprause@users.noreply.github.com> Date: Sun, 10 Apr 2022 13:20:33 +0200 Subject: [PATCH] Fix groupBy usage in playground sidebar (#12642) The groupBy function added in fa3b95c2e1a3a3351dc1b0168aa2c26f0cc4e9b3 does not support the property name shorthand from lodash. --- website/playground/sidebar/SidebarOptions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/playground/sidebar/SidebarOptions.js b/website/playground/sidebar/SidebarOptions.js index 085a5ecba..d47347c71 100644 --- a/website/playground/sidebar/SidebarOptions.js +++ b/website/playground/sidebar/SidebarOptions.js @@ -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] ? (