mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
Fix missing null check in block header component (#34)
This commit is contained in:
parent
0a45311f30
commit
97ca430884
@ -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}>
|
||||
|
Loading…
Reference in New Issue
Block a user