From 62955f4d11b2366d71a1d5dbb4b378d111f0d064 Mon Sep 17 00:00:00 2001 From: Joel Date: Mon, 25 Aug 2025 10:26:11 +0800 Subject: [PATCH] chore: hide json entrance --- .../app/configuration/config-var/config-modal/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/app/configuration/config-var/config-modal/index.tsx b/web/app/components/app/configuration/config-var/config-modal/index.tsx index 5cfbf186c8..5bb6009b9a 100644 --- a/web/app/components/app/configuration/config-var/config-modal/index.tsx +++ b/web/app/components/app/configuration/config-var/config-modal/index.tsx @@ -54,7 +54,7 @@ const ConfigModal: FC = ({ const modalRef = useRef(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 = ({ value: InputVarType.multiFiles, }, ] : []), - ...(!isBasicApp ? [{ + ...((!isBasicApp && isSupportJSON) ? [{ name: t('appDebug.variableConfig.json'), value: InputVarType.jsonObject, }] : []),