mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-23 08:48:28 +00:00
Fix missing null check in block header component (#34)
This commit is contained in:
parent
0a45311f30
commit
97ca430884
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue