mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Fix call of onCompleted after all promises are resolved
This commit is contained in:
@@ -127,7 +127,7 @@ export const AwsElastiCacheInputForm = ({
|
||||
}
|
||||
});
|
||||
await Promise.all(promises);
|
||||
if (hasErrors) {
|
||||
if (!hasErrors) {
|
||||
onCompleted();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -104,7 +104,7 @@ export const AwsIamInputForm = ({
|
||||
}
|
||||
});
|
||||
await Promise.all(promises);
|
||||
if (hasErrors) {
|
||||
if (!hasErrors) {
|
||||
onCompleted();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -149,7 +149,7 @@ export const AzureEntraIdInputForm = ({
|
||||
}
|
||||
});
|
||||
await Promise.all(promises);
|
||||
if (hasErrors) {
|
||||
if (!hasErrors) {
|
||||
onCompleted();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -127,7 +127,7 @@ export const CassandraInputForm = ({
|
||||
}
|
||||
});
|
||||
await Promise.all(promises);
|
||||
if (hasErrors) {
|
||||
if (!hasErrors) {
|
||||
onCompleted();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -147,7 +147,7 @@ export const ElasticSearchInputForm = ({
|
||||
}
|
||||
});
|
||||
await Promise.all(promises);
|
||||
if (hasErrors) {
|
||||
if (!hasErrors) {
|
||||
onCompleted();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -156,7 +156,7 @@ export const LdapInputForm = ({
|
||||
}
|
||||
});
|
||||
await Promise.all(promises);
|
||||
if (hasErrors) {
|
||||
if (!hasErrors) {
|
||||
onCompleted();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -158,7 +158,7 @@ export const MongoAtlasInputForm = ({
|
||||
}
|
||||
});
|
||||
await Promise.all(promises);
|
||||
if (hasErrors) {
|
||||
if (!hasErrors) {
|
||||
onCompleted();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -135,7 +135,7 @@ export const MongoDBDatabaseInputForm = ({
|
||||
}
|
||||
});
|
||||
await Promise.all(promises);
|
||||
if (hasErrors) {
|
||||
if (!hasErrors) {
|
||||
onCompleted();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -136,7 +136,7 @@ export const RabbitMqInputForm = ({
|
||||
}
|
||||
});
|
||||
await Promise.all(promises);
|
||||
if (hasErrors) {
|
||||
if (!hasErrors) {
|
||||
onCompleted();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -121,7 +121,7 @@ export const RedisInputForm = ({
|
||||
}
|
||||
});
|
||||
await Promise.all(promises);
|
||||
if (hasErrors) {
|
||||
if (!hasErrors) {
|
||||
onCompleted();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -122,7 +122,7 @@ sp_droplogin '{{username}}';`
|
||||
}
|
||||
});
|
||||
await Promise.all(promises);
|
||||
if (hasErrors) {
|
||||
if (!hasErrors) {
|
||||
onCompleted();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -122,7 +122,7 @@ DROP USER {{username}};`,
|
||||
}
|
||||
});
|
||||
await Promise.all(promises);
|
||||
if (hasErrors) {
|
||||
if (!hasErrors) {
|
||||
onCompleted();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -125,7 +125,7 @@ export const SnowflakeInputForm = ({
|
||||
}
|
||||
});
|
||||
await Promise.all(promises);
|
||||
if (hasErrors) {
|
||||
if (!hasErrors) {
|
||||
onCompleted();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -215,7 +215,7 @@ export const SqlDatabaseInputForm = ({
|
||||
}
|
||||
});
|
||||
await Promise.all(promises);
|
||||
if (hasErrors) {
|
||||
if (!hasErrors) {
|
||||
onCompleted();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -128,7 +128,7 @@ export const TotpInputForm = ({
|
||||
}
|
||||
});
|
||||
await Promise.all(promises);
|
||||
if (hasErrors) {
|
||||
if (!hasErrors) {
|
||||
onCompleted();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user