■ ■ ■ ■ ■ ■
opencti-platform/opencti-front/src/private/components/observations/indicators/IndicatorEditionOverview.js
| skipped 99 lines |
100 | 100 | | x_opencti_score: Yup.number().nullable(), |
101 | 101 | | description: Yup.string().nullable(), |
102 | 102 | | x_opencti_detection: Yup.boolean(), |
103 | | - | x_mitre_platforms: Yup.array(), |
104 | | - | indicator_types: Yup.array(), |
| 103 | + | x_mitre_platforms: Yup.array().nullable(), |
| 104 | + | indicator_types: Yup.array().nullable(), |
105 | 105 | | references: Yup.array().required(t('This field is required')), |
106 | 106 | | x_opencti_workflow_id: Yup.object(), |
107 | 107 | | }); |
| skipped 230 lines |
338 | 338 | | <SubscriptionFocus context={context} fieldName="name" /> |
339 | 339 | | } |
340 | 340 | | /> |
| 341 | + | <OpenVocabField |
| 342 | + | label={t('Indicator types')} |
| 343 | + | type="indicator-type-ov" |
| 344 | + | name="indicator_types" |
| 345 | + | onFocus={this.handleChangeFocus.bind(this)} |
| 346 | + | onChange={this.handleSubmitField.bind(this)} |
| 347 | + | containerStyle={fieldSpacingContainerStyle} |
| 348 | + | variant="edit" |
| 349 | + | multiple={true} |
| 350 | + | editContext={context} |
| 351 | + | /> |
341 | 352 | | <ConfidenceField |
342 | 353 | | name="confidence" |
343 | 354 | | onFocus={this.handleChangeFocus.bind(this)} |
| skipped 51 lines |
395 | 406 | | /> |
396 | 407 | | ), |
397 | 408 | | }} |
398 | | - | /> |
399 | | - | <OpenVocabField |
400 | | - | label={t('Indicator types')} |
401 | | - | type="indicator-type-ov" |
402 | | - | name="indicator_types" |
403 | | - | onFocus={this.handleChangeFocus.bind(this)} |
404 | | - | onChange={this.handleSubmitField.bind(this)} |
405 | | - | containerStyle={fieldSpacingContainerStyle} |
406 | | - | variant="edit" |
407 | | - | multiple={true} |
408 | | - | editContext={context} |
409 | 409 | | /> |
410 | 410 | | <Field |
411 | 411 | | component={SelectField} |
| skipped 196 lines |