refactor: don't make instructions required

This commit is contained in:
Danny Avila 2024-09-04 00:29:38 -04:00
parent b71d773f01
commit a1cd9983e8
No known key found for this signature in database
GPG key ID: 2DD9CC89B9B50364

View file

@ -221,12 +221,11 @@ export default function AgentConfig({
{/* Instructions */}
<div className="mb-6">
<label className={labelClass} htmlFor="instructions">
{localize('com_ui_instructions')} <span className="text-red-500">*</span>
{localize('com_ui_instructions')}
</label>
<Controller
name="instructions"
control={control}
rules={{ required: true, minLength: 1 }}
render={({ field, fieldState: { error } }) => (
<>
<textarea