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