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:
parent
e5c25f94a3
commit
662aa0a491
@ -55,13 +55,13 @@ class NonInjectedCatalogEntityDetails<Entity extends CatalogEntity> extends Comp
|
|||||||
title={entity.getName()}
|
title={entity.getName()}
|
||||||
colorHash={`${entity.getName()}-${entity.getSource()}`}
|
colorHash={`${entity.getName()}-${entity.getSource()}`}
|
||||||
size={128}
|
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"
|
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}
|
onClick={onRun}
|
||||||
className={styles.avatar}
|
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>
|
</Avatar>
|
||||||
{entity.isEnabled() && (
|
{entity.isEnabled() && (
|
||||||
<div className={styles.hint}>
|
<div className={styles.hint}>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user