Explorar o código

add small fix for detecting the infra status from the latest op

Alexander Belanger %!s(int64=4) %!d(string=hai) anos
pai
achega
a9d9b1b13c

+ 1 - 1
dashboard/src/main/home/onboarding/steps/ProvisionResources/forms/StatusPage.tsx

@@ -114,7 +114,7 @@ export const StatusPage = ({
 
 
       let erroredInfras = newInfras.filter((newInfra) => {
       let erroredInfras = newInfras.filter((newInfra) => {
         if (newInfra.latest_operation) {
         if (newInfra.latest_operation) {
-          return newInfra.latest_operation.status == "errored";
+          return newInfra.latest_operation.errored;
         }
         }
 
 
         return newInfra.status == "errored";
         return newInfra.status == "errored";