1
0
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:
Hung-Han (Henry) Chen 2021-10-01 16:46:47 +03:00
parent 031a2fe995
commit 4a3510848e
No known key found for this signature in database
GPG Key ID: 54B44603D251B788

View File

@ -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>;
}