Skip to content

Commit 700b0e6

Browse files
authored
Fix theme selection (#8082)
2 parents d4c544c + 3d97c0d commit 700b0e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/samples/react/src/components/Sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const Sidebar: FC<Props> = ({ version, theme, routes, routeList, sample,
5353
const formatSampleAsLabel = () => sample.replace(/\//g, ' ');
5454

5555
const handleThemeSelectChange = (_event: Event, value: unknown) => {
56-
onThemeChange((value as [string])[0]);
56+
onThemeChange(value as string);
5757
};
5858

5959
const handlePreviousClick = () => {

0 commit comments

Comments
 (0)