소스 검색

fix: hide automatic button on automatic result page (#4494)

sino 1 년 전
부모
커밋
2988b67c24
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      web/app/components/app/configuration/config-prompt/simple-prompt-input.tsx

+ 1 - 1
web/app/components/app/configuration/config-prompt/simple-prompt-input.tsx

@@ -148,7 +148,7 @@ const Prompt: FC<ISimplePromptInput> = ({
             )}
           </div>
           <div className='flex items-center'>
-            {!isAgent && (
+            {!isAgent && !readonly && (
               <AutomaticBtn onClick={showAutomaticTrue} />
             )}
           </div>