Small syntax fixes in ResourceDropdown.js

This commit is contained in:
VakarisZ 2020-10-02 15:55:50 +03:00
parent 0dfecd1837
commit 6a21a3a07e
1 changed files with 6 additions and 6 deletions

View File

@ -39,10 +39,10 @@ export default function ResourceDropdown(props) {
function replacePathDotsWithArrows(resourcePath) { function replacePathDotsWithArrows(resourcePath) {
let path_vars = resourcePath.split('.') let path_vars = resourcePath.split('.')
let display_path = [] 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]) display_path.push(path_vars[i])
if( i !== path_vars.length - 1) { if (i !== path_vars.length - 1) {
display_path.push(<FontAwesomeIcon icon={faArrowRight} />) display_path.push(<FontAwesomeIcon icon={faArrowRight}/>)
} }
} }
return display_path; return display_path;
@ -54,14 +54,14 @@ export default function ResourceDropdown(props) {
function getResourceValueDisplay() { function getResourceValueDisplay() {
if (resource_value) { if (resource_value) {
return( return (
<div> <div>
<p className={'resource-value-title'}>Value:</p> <p className={'resource-value-title'}>Value:</p>
<pre className={'resource-value-json'}>{prettyPrintJson(resource_value)}</pre> <pre className={'resource-value-json'}>{prettyPrintJson(resource_value)}</pre>
</div> </div>
) );
} else { } else {
return '' return '';
} }
} }