mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix: incorrect parsing svg-icon xml-content by <HotbarEntityIcon/>
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
f1efed4d78
commit
5b88f23a5f
@ -47,7 +47,7 @@ export class HotbarEntityIcon extends React.Component<Props> {
|
||||
return <Icon material="bug_report" className={className} />;
|
||||
}
|
||||
|
||||
if (category.metadata.icon.includes("<svg")) {
|
||||
if (category.metadata.icon.includes("svg+xml")) {
|
||||
return <Icon svg={category.metadata.icon} className={className} />;
|
||||
} else {
|
||||
return <Icon material={category.metadata.icon} className={className} />;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user