Fix call of onCompleted after all promises are resolved

This commit is contained in:
carlosmonastyrski
2025-03-14 12:44:49 -03:00
parent e39d1a0530
commit 94d7d2b029
15 changed files with 15 additions and 15 deletions
@@ -127,7 +127,7 @@ export const AwsElastiCacheInputForm = ({
} }
}); });
await Promise.all(promises); await Promise.all(promises);
if (hasErrors) { if (!hasErrors) {
onCompleted(); onCompleted();
} }
}; };
@@ -104,7 +104,7 @@ export const AwsIamInputForm = ({
} }
}); });
await Promise.all(promises); await Promise.all(promises);
if (hasErrors) { if (!hasErrors) {
onCompleted(); onCompleted();
} }
}; };
@@ -149,7 +149,7 @@ export const AzureEntraIdInputForm = ({
} }
}); });
await Promise.all(promises); await Promise.all(promises);
if (hasErrors) { if (!hasErrors) {
onCompleted(); onCompleted();
} }
}; };
@@ -127,7 +127,7 @@ export const CassandraInputForm = ({
} }
}); });
await Promise.all(promises); await Promise.all(promises);
if (hasErrors) { if (!hasErrors) {
onCompleted(); onCompleted();
} }
}; };
@@ -147,7 +147,7 @@ export const ElasticSearchInputForm = ({
} }
}); });
await Promise.all(promises); await Promise.all(promises);
if (hasErrors) { if (!hasErrors) {
onCompleted(); onCompleted();
} }
}; };
@@ -156,7 +156,7 @@ export const LdapInputForm = ({
} }
}); });
await Promise.all(promises); await Promise.all(promises);
if (hasErrors) { if (!hasErrors) {
onCompleted(); onCompleted();
} }
}; };
@@ -158,7 +158,7 @@ export const MongoAtlasInputForm = ({
} }
}); });
await Promise.all(promises); await Promise.all(promises);
if (hasErrors) { if (!hasErrors) {
onCompleted(); onCompleted();
} }
}; };
@@ -135,7 +135,7 @@ export const MongoDBDatabaseInputForm = ({
} }
}); });
await Promise.all(promises); await Promise.all(promises);
if (hasErrors) { if (!hasErrors) {
onCompleted(); onCompleted();
} }
}; };
@@ -136,7 +136,7 @@ export const RabbitMqInputForm = ({
} }
}); });
await Promise.all(promises); await Promise.all(promises);
if (hasErrors) { if (!hasErrors) {
onCompleted(); onCompleted();
} }
}; };
@@ -121,7 +121,7 @@ export const RedisInputForm = ({
} }
}); });
await Promise.all(promises); await Promise.all(promises);
if (hasErrors) { if (!hasErrors) {
onCompleted(); onCompleted();
} }
}; };
@@ -122,7 +122,7 @@ sp_droplogin '{{username}}';`
} }
}); });
await Promise.all(promises); await Promise.all(promises);
if (hasErrors) { if (!hasErrors) {
onCompleted(); onCompleted();
} }
}; };
@@ -122,7 +122,7 @@ DROP USER {{username}};`,
} }
}); });
await Promise.all(promises); await Promise.all(promises);
if (hasErrors) { if (!hasErrors) {
onCompleted(); onCompleted();
} }
}; };
@@ -125,7 +125,7 @@ export const SnowflakeInputForm = ({
} }
}); });
await Promise.all(promises); await Promise.all(promises);
if (hasErrors) { if (!hasErrors) {
onCompleted(); onCompleted();
} }
}; };
@@ -215,7 +215,7 @@ export const SqlDatabaseInputForm = ({
} }
}); });
await Promise.all(promises); await Promise.all(promises);
if (hasErrors) { if (!hasErrors) {
onCompleted(); onCompleted();
} }
}; };
@@ -128,7 +128,7 @@ export const TotpInputForm = ({
} }
}); });
await Promise.all(promises); await Promise.all(promises);
if (hasErrors) { if (!hasErrors) {
onCompleted(); onCompleted();
} }
}; };