mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 09:28:06 +00:00
Lint fix
This commit is contained in:
+15
-14
@@ -115,20 +115,21 @@ export const SecretEditRow = ({
|
|||||||
|
|
||||||
const [isFieldFocused, setIsFieldFocused] = useToggle();
|
const [isFieldFocused, setIsFieldFocused] = useToggle();
|
||||||
|
|
||||||
const fetchSecretValueParams = importedSecret && !isSecretPresent
|
const fetchSecretValueParams =
|
||||||
? {
|
importedSecret && !isSecretPresent
|
||||||
environment: importedSecret.environment,
|
? {
|
||||||
secretPath: importedSecret.secretPath,
|
environment: importedSecret.environment,
|
||||||
secretKey: importedSecret.secret?.key ?? "",
|
secretPath: importedSecret.secretPath,
|
||||||
projectId: currentProject.id
|
secretKey: importedSecret.secret?.key ?? "",
|
||||||
}
|
projectId: currentProject.id
|
||||||
: {
|
}
|
||||||
environment,
|
: {
|
||||||
secretPath,
|
environment,
|
||||||
secretKey: secretName,
|
secretPath,
|
||||||
projectId: currentProject.id,
|
secretKey: secretName,
|
||||||
isOverride
|
projectId: currentProject.id,
|
||||||
};
|
isOverride
|
||||||
|
};
|
||||||
|
|
||||||
// scott: only fetch value if secret exists, has non-empty value and user has permission
|
// scott: only fetch value if secret exists, has non-empty value and user has permission
|
||||||
const canFetchValue = Boolean(importedSecret ?? secretId) && !isEmpty && !secretValueHidden;
|
const canFetchValue = Boolean(importedSecret ?? secretId) && !isEmpty && !secretValueHidden;
|
||||||
|
|||||||
Reference in New Issue
Block a user