Skip to content

Commit a9f0d12

Browse files
committed
useK8sModelsWithColors console log & check
1 parent 6338f62 commit a9f0d12

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

web/moduleMapper/dummy.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ export const ResourceLink: React.FC<ResourceLinkProps> = ({
4747
return (
4848
//TODO: add icon here
4949
<span className={className}>
50-
<span
50+
{k8sModels[kind!] && <span
5151
className="co-m-resource-icon"
5252
style={{ backgroundColor: k8sModels[kind!].color }}
5353
title={kind}>
5454
{k8sModels[kind!].abbr}
55-
</span>
55+
</span>}
5656
<span className="co-resource-item__resource-name" data-test-id={value} data-test={dataTest}>
5757
{value}
5858
</span>

web/src/utils/k8s-models-hook.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,5 @@ export function useK8sModelsWithColors() {
7575
setColor('Ingress', '#1F0066');
7676
}
7777

78-
console.log(k8sModels);
7978
return k8sModels;
8079
}

0 commit comments

Comments
 (0)