Update plugins/newrelic/src/api/index.ts

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Robert Bunning <129326788+wss-rbunning@users.noreply.github.com>
This commit is contained in:
Robert Bunning
2023-08-03 14:47:25 -04:00
committed by GitHub
parent f55b6fd1e2
commit a6f2f70515
+1 -1
View File
@@ -166,7 +166,7 @@ export class NewRelicClient implements NewRelicApi {
const relation = linkParts?.[2];
const nextPageLink = `${this.baseUrl}${nextPageNumber}`;
const isValidLink = !!(!!linkParts && nextPageNumber && relation);
const isValidLink = !!(linkParts && nextPageNumber && relation);
if (!nextRelevantLink || !isValidLink) {
return undefined;