UI: Fix style problems in minor components

This commit is contained in:
vakarisz 2022-07-15 11:20:14 +03:00
parent 77b24ba7a6
commit ec9a654fdf
3 changed files with 5 additions and 7 deletions

View File

@ -61,7 +61,7 @@ class AdvancedMultiSelect extends React.Component {
namesToPlugins = (names, allPlugins) => {
let plugins = [];
for (let i = 0; i < names.length; i++){
plugins.push(_.clone(allPlugins[names[i]]));
plugins.push(cloneDeep(allPlugins[names[i]]));
}
return plugins
}

View File

@ -1,9 +1,7 @@
import {Card, Button} from 'react-bootstrap';
import {Button, Card} from 'react-bootstrap';
import React from 'react';
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
import {faQuestionCircle} from '@fortawesome/free-solid-svg-icons';
import {getObjectFromRegistryByRef} from './JsonSchemaHelpers';
import WarningIcon from './WarningIcon';
const WarningType = {

View File

@ -8,14 +8,14 @@ const EXPLOITATION_CONFIGURATION_SCHEMA = {
'items': BRUTE_FORCE_EXPLOITERS,
'title': 'Brute force exploiters',
'type': 'array',
'uniqueItems': true,
'uniqueItems': true
},
'vulnerability': {
'items': VULNERABILITY_EXPLOITERS,
'title': 'Vulnerability Exploiters',
'type': 'array',
'uniqueItems': true,
},
'uniqueItems': true
}
},
'options': EXPLOITATION_OPTIONS_CONFIGURATION_SCHEMA,
'type': 'object'