浏览代码

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

sino 11 月之前
父节点
当前提交
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>