Skip to content

Commit

Permalink
Hotfix for missing details
Browse files Browse the repository at this point in the history
  • Loading branch information
phutelmyer committed Jan 15, 2024
1 parent b2fdd3c commit 6a0ac3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ui/src/components/FileComponents/JavascriptOverviewCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ const JavascriptOverviewCard = ({ data }) => {
};

const renderJavascriptSection = (title, key) => {
if (!data.scan.javascript || !data.scan.javascript[key]) {
return null; // Return null or handle the case where key doesn't exist
}

const javascriptData = processJavascriptData(key);
return (
<div
Expand Down
5 changes: 3 additions & 2 deletions ui/src/pages/SubmissionView.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,9 @@ const SubmissionsPage = (props) => {
<Text strong>JavaScript</Text>
<div style={{ fontSize: "smaller", color: "#888" }}>
Script Length:{" "}
{selectedNodeData.scan.javascript?.script_length_bytes}{" "}
bytes
{selectedNodeData.scan.javascript?.script_length_bytes
? `${selectedNodeData.scan.javascript?.script_length_bytes} bytes`
: "(Length calculation not supported by this release of Strelka)"}
</div>
</div>
}
Expand Down

0 comments on commit 6a0ac3c

Please sign in to comment.