mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix a bug when material prop is not null|undefined|string
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
parent
031a2fe995
commit
4a3510848e
@ -121,7 +121,7 @@ export class Icon extends React.PureComponent<IconProps> {
|
||||
}
|
||||
|
||||
// render as material-icon
|
||||
if (material) {
|
||||
if (material && typeof material === "string") {
|
||||
iconContent = <span className="icon" data-icon-name={material}>{material}</span>;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user