Преглед на файлове

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>