Allow description to be optional (#4060)

# What this PR does

Allow description input to be optional in the integration form
This commit is contained in:
Rares Mardare 2024-03-14 16:38:52 +02:00 committed by GitHub
parent b80c51b0bf
commit 91e6bec06b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 7 deletions

View file

@ -62,6 +62,7 @@ export const IntegrationHowToConnect: React.FC<{ id: ApiSchemas['AlertReceiveCha
{url && (
<IntegrationInputField
value={url}
isMasked
className={cx('integration__input-field')}
showExternal={!!item?.integration_url}
/>

View file

@ -197,14 +197,8 @@ export const IntegrationForm = observer(
<Controller
name={'description_short'}
control={control}
rules={{ required: 'Description is required' }}
render={({ field }) => (
<Field
key={'Description'}
label={'Integration Description'}
invalid={!!errors.description_short}
error={errors.description_short?.message}
>
<Field key={'Description'} label={'Integration Description'}>
<TextArea {...field} className={styles.textarea} placeholder={'Integration Description'} />
</Field>
)}