mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
Fix missing null check in block header component (#34)
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user