Skip to content

Commit 19b0e8c

Browse files
committed
small fix
1 parent eac0984 commit 19b0e8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/web/src/components/ui/custom-blocks/alert-block.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ export const AlertBlock = createReactBlockSpec(
6565
render: (props) => {
6666
const alertType = alertTypes.find(
6767
(a) => a.value === props.block.props.type,
68-
)!;
68+
);
69+
if (!alertType) return null;
6970
const Icon = alertType.icon;
7071
return (
7172
<div className={"alert"} data-alert-type={props.block.props.type}>

0 commit comments

Comments
 (0)