Skip to content

Commit 04d2035

Browse files
authored
fix: Fix incorrect ProviderConfig usage counter (#219)
1 parent 88dafad commit 04d2035

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/ControlPlane/ProvidersConfig.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function ProvidersConfig() {
4545
rows.push({
4646
parent: provider.provider,
4747
name: config.metadata.name,
48-
usage: config.metadata.usage ? config.metadata.usage : '0',
48+
usage: config?.status?.users ?? '0',
4949
created: timeAgo.format(new Date(config.metadata.creationTimestamp)),
5050
resource: config,
5151
});

src/lib/shared/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export type ProviderConfigs = {
2727
};
2828
status: {
2929
count: string;
30+
users: string;
3031
};
3132
},
3233
];

0 commit comments

Comments
 (0)