We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eac0984 commit 19b0e8cCopy full SHA for 19b0e8c
apps/web/src/components/ui/custom-blocks/alert-block.tsx
@@ -65,7 +65,8 @@ export const AlertBlock = createReactBlockSpec(
65
render: (props) => {
66
const alertType = alertTypes.find(
67
(a) => a.value === props.block.props.type,
68
- )!;
+ );
69
+ if (!alertType) return null;
70
const Icon = alertType.icon;
71
return (
72
<div className={"alert"} data-alert-type={props.block.props.type}>
0 commit comments