Skip to content

Commit

Permalink
Merge pull request #5 from Friends-of-Monika/fix/undefined-source-map
Browse files Browse the repository at this point in the history
Fix validation breaking on selecting non-JSON files
  • Loading branch information
dreamscached committed Mar 29, 2024
2 parents bc76c06 + 95eb05d commit 937d0fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/validator/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
minLine = error.where[0];
maxLine = minLine;
} else if (error instanceof TypeError) {
if (source === undefined) return null;
const typeLine = getJsonPathLine("/type", source!);
if (typeLine === null) return null;
minLine = typeLine;
Expand Down

0 comments on commit 937d0fd

Please sign in to comment.