mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
fix null ptr
This commit is contained in:
parent
2d1c55471c
commit
b668138ae0
@ -97,7 +97,7 @@ function getBlockHeaderText(blockIcon: string, blockData: Block): React.ReactNod
|
||||
}
|
||||
let blockIconElem: React.ReactNode = null;
|
||||
if (!util.isBlank(blockIcon)) {
|
||||
let iconColor = blockData.meta["icon:color"];
|
||||
let iconColor = blockData?.meta?.["icon:color"];
|
||||
if (iconColor && !iconColor.match(colorRegex)) {
|
||||
iconColor = null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user