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:
parent
b80c51b0bf
commit
91e6bec06b
2 changed files with 2 additions and 7 deletions
|
|
@ -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}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue