1
0
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:
Roman 2022-02-07 17:08:40 +02:00
parent f1efed4d78
commit 5b88f23a5f

View File

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