Fix missing null check in block header component (#34)

This commit is contained in:
Evan Simkowitz 2024-06-11 13:06:05 -07:00 committed by GitHub
parent 0a45311f30
commit 97ca430884
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,7 @@ const BlockHeader = ({ blockId, onClose }: BlockProps) => {
return (
<div key="header" className="block-header">
<div className="block-header-text text-fixed">
Block [{blockId.substring(0, 8)}] {blockData.view}
Block [{blockId.substring(0, 8)}] {blockData?.view}
</div>
{onClose && (
<div className="close-button" onClick={onClose}>