mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-04 18:59:08 +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;
|
let blockIconElem: React.ReactNode = null;
|
||||||
if (!util.isBlank(blockIcon)) {
|
if (!util.isBlank(blockIcon)) {
|
||||||
let iconColor = blockData.meta["icon:color"];
|
let iconColor = blockData?.meta?.["icon:color"];
|
||||||
if (iconColor && !iconColor.match(colorRegex)) {
|
if (iconColor && !iconColor.match(colorRegex)) {
|
||||||
iconColor = null;
|
iconColor = null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user