From f18ff564e62a6ab8aac7de11feb53b42ba52bf0a Mon Sep 17 00:00:00 2001 From: mushan0x0 Date: Tue, 5 Nov 2024 11:35:36 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20the=20agent=20setting=20`?= =?UTF-8?q?-edit=5Fagent`=20not=20work?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/AgentSetting/AgentMeta/index.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/features/AgentSetting/AgentMeta/index.tsx b/src/features/AgentSetting/AgentMeta/index.tsx index 44ed74b6b433..1d92c12eff0a 100644 --- a/src/features/AgentSetting/AgentMeta/index.tsx +++ b/src/features/AgentSetting/AgentMeta/index.tsx @@ -9,6 +9,7 @@ import { memo } from 'react'; import { useTranslation } from 'react-i18next'; import { FORM_STYLE } from '@/const/layoutTokens'; +import { featureFlagsSelectors, useServerConfigStore } from '@/store/serverConfig'; import { useStore } from '../store'; import { SessionLoadingState } from '../store/initialState'; @@ -126,7 +127,17 @@ const AgentMeta = memo(() => { title: t('settingAgent.title'), }; - return
; + const { isAgentEditable } = useServerConfigStore(featureFlagsSelectors); + + return ( + + ); }); export default AgentMeta;