Skip to content

Commit d9cd73c

Browse files
Merge pull request #16 from opengrep/fix-typo
fix: fix scan results error typo
2 parents d0b48cf + 0bd2b55 commit d9cd73c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "opengrep-playground",
33
"productName": "opengrep-playground",
4-
"version": "1.1.1",
4+
"version": "1.1.2",
55
"description": "Opengrep Playgorund Editor",
66
"main": ".vite/build/main.js",
77
"scripts": {

src/components/RuleResults.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ async function runBinaryForScan(binaryPath, runScanWithoutMatchingExplanations)
183183
}
184184
185185
function extractScanErrors(jsonOutput) {
186-
return jsonOutput.errrors.forEach(error => {
186+
return jsonOutput?.errors?.forEach(error => {
187187
showErrorDialog(`${error.level}: ${error.type}`, error.message);
188188
});
189189
}

0 commit comments

Comments
 (0)