1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

chore: Fix type error by casting more

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-05-03 15:43:44 -04:00
parent e5c25f94a3
commit 662aa0a491

View File

@ -55,13 +55,13 @@ class NonInjectedCatalogEntityDetails<Entity extends CatalogEntity> extends Comp
title={entity.getName()}
colorHash={`${entity.getName()}-${entity.getSource()}`}
size={128}
src={(entity as KubernetesCluster).spec.icon?.src}
src={(entity as unknown as KubernetesCluster).spec.icon?.src}
data-testid="detail-panel-hot-bar-icon"
background={(entity as KubernetesCluster).spec.icon?.background}
background={(entity as unknown as KubernetesCluster).spec.icon?.background}
onClick={onRun}
className={styles.avatar}
>
{(entity as KubernetesCluster).spec.icon?.material && <Icon material={(entity as KubernetesCluster).spec.icon?.material}/>}
{(entity as unknown as KubernetesCluster).spec.icon?.material && <Icon material={(entity as unknown as KubernetesCluster).spec.icon?.material}/>}
</Avatar>
{entity.isEnabled() && (
<div className={styles.hint}>