chore: minor refactor
This commit is contained in:
@@ -380,7 +380,7 @@ const saveEnvironment = async () => {
|
|||||||
const variables = pipe(
|
const variables = pipe(
|
||||||
filterdVariables,
|
filterdVariables,
|
||||||
A.map((e) =>
|
A.map((e) =>
|
||||||
e.secret ? { key: e.key, secret: e.secret ?? false, value: undefined } : e
|
e.secret ? { key: e.key, secret: e.secret, value: undefined } : e
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -83,9 +83,9 @@ const cursorTooltipField = (aggregateEnvs: AggregateEnvironment[]) =>
|
|||||||
)
|
)
|
||||||
|
|
||||||
if (!tooltipEnv?.secret && tooltipEnv?.value) envValue = tooltipEnv.value
|
if (!tooltipEnv?.secret && tooltipEnv?.value) envValue = tooltipEnv.value
|
||||||
else if (tooltipEnv?.secret && !tooltipEnv.value && hasSecretEnv) {
|
else if (tooltipEnv?.secret && hasSecretEnv) {
|
||||||
envValue = "******"
|
envValue = "******"
|
||||||
} else if (tooltipEnv?.secret && !tooltipEnv.value && !hasSecretEnv) {
|
} else if (tooltipEnv?.secret && !hasSecretEnv) {
|
||||||
envValue = "Empty"
|
envValue = "Empty"
|
||||||
} else if (!tooltipEnv?.sourceEnv) {
|
} else if (!tooltipEnv?.sourceEnv) {
|
||||||
envValue = "Not Found"
|
envValue = "Not Found"
|
||||||
|
|||||||
Reference in New Issue
Block a user