mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 04:26:33 +00:00
improvement: additional isPending fix
This commit is contained in:
@@ -23,7 +23,7 @@ export const SecretSyncConnectionField = ({ onChange: callback }: Props) => {
|
|||||||
const destination = watch("destination");
|
const destination = watch("destination");
|
||||||
const app = SECRET_SYNC_CONNECTION_MAP[destination];
|
const app = SECRET_SYNC_CONNECTION_MAP[destination];
|
||||||
|
|
||||||
const { data: availableConnections, isLoading } = useListAvailableAppConnections(app);
|
const { data: availableConnections, isPending } = useListAvailableAppConnections(app);
|
||||||
|
|
||||||
const connectionName = APP_CONNECTION_MAP[app].name;
|
const connectionName = APP_CONNECTION_MAP[app].name;
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ export const SecretSyncConnectionField = ({ onChange: callback }: Props) => {
|
|||||||
onChange(newValue);
|
onChange(newValue);
|
||||||
if (callback) callback();
|
if (callback) callback();
|
||||||
}}
|
}}
|
||||||
isLoading={isLoading}
|
isLoading={isPending}
|
||||||
options={availableConnections}
|
options={availableConnections}
|
||||||
placeholder="Select connection..."
|
placeholder="Select connection..."
|
||||||
getOptionLabel={(option) => option.name}
|
getOptionLabel={(option) => option.name}
|
||||||
|
|||||||
Reference in New Issue
Block a user