Przeglądaj źródła

log on filtered infras

jusrhee 5 lat temu
rodzic
commit
77c92777fc

+ 1 - 0
dashboard/src/main/home/provisioner/ProvisionerStatus.tsx

@@ -67,6 +67,7 @@ export default class ProvisionerStatus extends Component<PropsType, StateType> {
         console.log(err);
         console.log(err);
       } 
       } 
       let infras = filterOldInfras(res.data);
       let infras = filterOldInfras(res.data);
+      console.log('filtered infras: ', infras);
       let error = false;
       let error = false;
 
 
       let maxStep = {} as Record<string, number>
       let maxStep = {} as Record<string, number>

+ 1 - 0
dashboard/src/shared/common.tsx

@@ -141,5 +141,6 @@ export const filterOldInfras = (infras: InfraType[]): InfraType[] => {
   let result = newestInfras.filter((x: InfraType) => {
   let result = newestInfras.filter((x: InfraType) => {
     return whitelistedInfras.includes(x.kind)
     return whitelistedInfras.includes(x.kind)
   });
   });
+  console.log('filtered infras (helper internal): ', result);
   return result;
   return result;
 }
 }