display visible var in var tree

pull/21369/head
jZonG 1 year ago
parent d915e9d980
commit e2940e353d

@ -47,7 +47,7 @@ const Group = ({
const isChatVar = varType === VarInInspectType.conversation
const isSystem = varType === VarInInspectType.system
const visibleVarList = varList.filter(v => v.visible)
const visibleVarList = isEnv ? varList : varList.filter(v => v.visible)
const handleSelectVar = (varItem: any, type?: string) => {
if (type === VarInInspectType.environment) {

@ -62,6 +62,7 @@ const Panel: FC = () => {
var: {
...currentVar,
type: VarInInspectType.environment,
visible: true,
...(currentVar.value_type === 'secret' ? { value: '******************' } : {}),
},
}

Loading…
Cancel
Save