From ec9a654fdf3cde3f1b4f2c5b1c70dcd1be80f5f3 Mon Sep 17 00:00:00 2001 From: vakarisz Date: Fri, 15 Jul 2022 11:20:14 +0300 Subject: [PATCH] UI: Fix style problems in minor components --- .../ui/src/components/ui-components/AdvancedMultiSelect.js | 2 +- .../cc/ui/src/components/ui-components/InfoPane.js | 4 +--- .../src/services/configuration/propagation/exploitation.js | 6 +++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/monkey/monkey_island/cc/ui/src/components/ui-components/AdvancedMultiSelect.js b/monkey/monkey_island/cc/ui/src/components/ui-components/AdvancedMultiSelect.js index df72ef682..bd6933ac2 100644 --- a/monkey/monkey_island/cc/ui/src/components/ui-components/AdvancedMultiSelect.js +++ b/monkey/monkey_island/cc/ui/src/components/ui-components/AdvancedMultiSelect.js @@ -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 } diff --git a/monkey/monkey_island/cc/ui/src/components/ui-components/InfoPane.js b/monkey/monkey_island/cc/ui/src/components/ui-components/InfoPane.js index 98a14be66..436aae5e5 100644 --- a/monkey/monkey_island/cc/ui/src/components/ui-components/InfoPane.js +++ b/monkey/monkey_island/cc/ui/src/components/ui-components/InfoPane.js @@ -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 = { diff --git a/monkey/monkey_island/cc/ui/src/services/configuration/propagation/exploitation.js b/monkey/monkey_island/cc/ui/src/services/configuration/propagation/exploitation.js index 39a8dac17..2b24b91f3 100644 --- a/monkey/monkey_island/cc/ui/src/services/configuration/propagation/exploitation.js +++ b/monkey/monkey_island/cc/ui/src/services/configuration/propagation/exploitation.js @@ -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'