Skip to content

Commit

Permalink
RavenDB-22188 Cannot view a MultiGet request in the Traffic Watch - l…
Browse files Browse the repository at this point in the history
…ess strict parsing
  • Loading branch information
ml054 committed May 13, 2024
1 parent 55736cc commit 7fd2b49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Raven.Studio/typescript/viewmodels/manage/trafficWatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ class runQueryFeature implements columnPreviewFeature {
if (line) {
const jsonObj = JSON.parse(line);

const queriesEndpoint = jsonObj.Url.endsWith("/queries");
const query = jsonObj.Query.slice("?query=".length);
const queriesEndpoint = jsonObj.Url?.endsWith("/queries");
const query = jsonObj.Query?.slice("?query=".length);

if (queriesEndpoint && query) {
queryList.push(query);
Expand Down

0 comments on commit 7fd2b49

Please sign in to comment.