mirror of
https://github.com/skooner-k8s/skooner.git
synced 2026-08-24 04:16:18 +00:00
fix type
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
function getReadyStatus({status}: {status: {[key: string]: any}}) {
|
||||
if (!status.conditions) return null;
|
||||
const ready = status.conditions.find((y: any) => y.type === 'Ready');
|
||||
const ready = status.conditions.find((y: {type: string}) => y.type === 'Ready');
|
||||
return ready && ready.status;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user