Skip to content

Commit

Permalink
fix: Properly render component type for custom options (#1291)
Browse files Browse the repository at this point in the history
  • Loading branch information
mstelz committed Apr 26, 2023
1 parent 1e145fc commit 2463f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/ui/Sidebar/index.tsx
Expand Up @@ -82,7 +82,7 @@ export const Sidebar: React.FC<{
previewEnabled
? { action: <TogglePreview label={t(defaultLabels.preview) ?? ''} /> }
: null,
...(customOptions?.map((customOption) => ({ action: customOption })) ?? []),
...(customOptions?.map((CustomOption) => ({ action: <CustomOption /> })) ?? []),
].filter(notEmpty);
return (
<div
Expand Down

0 comments on commit 2463f83

Please sign in to comment.