mirror of
https://github.com/langgenius/dify.git
synced 2026-03-28 15:51:00 +08:00
chore: hide json entrance
This commit is contained in:
parent
e38ba8403d
commit
62955f4d11
@ -54,7 +54,7 @@ const ConfigModal: FC<IConfigModalProps> = ({
|
||||
const modalRef = useRef<HTMLDivElement>(null)
|
||||
const appDetail = useAppStore(state => state.appDetail)
|
||||
const isBasicApp = appDetail?.mode !== 'advanced-chat' && appDetail?.mode !== 'workflow'
|
||||
|
||||
const isSupportJSON = false
|
||||
const jsonSchemaStr = useMemo(() => {
|
||||
const isJsonObject = type === InputVarType.jsonObject
|
||||
if (!isJsonObject || !tempPayload.json_schema)
|
||||
@ -142,7 +142,7 @@ const ConfigModal: FC<IConfigModalProps> = ({
|
||||
value: InputVarType.multiFiles,
|
||||
},
|
||||
] : []),
|
||||
...(!isBasicApp ? [{
|
||||
...((!isBasicApp && isSupportJSON) ? [{
|
||||
name: t('appDebug.variableConfig.json'),
|
||||
value: InputVarType.jsonObject,
|
||||
}] : []),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user