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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user