From 6a21a3a07e1263a1003b70c06eabe83c23b45fcd Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Fri, 2 Oct 2020 15:55:50 +0300 Subject: [PATCH] Small syntax fixes in ResourceDropdown.js --- .../zerotrust/scoutsuite/ResourceDropdown.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/scoutsuite/ResourceDropdown.js b/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/scoutsuite/ResourceDropdown.js index 212d37331..0e2421e56 100644 --- a/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/scoutsuite/ResourceDropdown.js +++ b/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/scoutsuite/ResourceDropdown.js @@ -39,10 +39,10 @@ export default function ResourceDropdown(props) { function replacePathDotsWithArrows(resourcePath) { let path_vars = resourcePath.split('.') let display_path = [] - for(let i = 0; i < path_vars.length; i++){ + for (let i = 0; i < path_vars.length; i++) { display_path.push(path_vars[i]) - if( i !== path_vars.length - 1) { - display_path.push() + if (i !== path_vars.length - 1) { + display_path.push() } } return display_path; @@ -54,14 +54,14 @@ export default function ResourceDropdown(props) { function getResourceValueDisplay() { if (resource_value) { - return( + return (

Value:

{prettyPrintJson(resource_value)}
- ) + ); } else { - return '' + return ''; } }