diff --git a/src/components/Main/index.tsx b/src/components/Main/index.tsx index 65fb9efd1..cad8ce3e0 100644 --- a/src/components/Main/index.tsx +++ b/src/components/Main/index.tsx @@ -41,14 +41,15 @@ const getURLToNavigateOnCodeLensClick = (scope: Scope): string | undefined => { } const codeLens = scope.context.payload.codeLens; - if (!codeLens.scopeCodeObjectId?.startsWith("span:")) { - return; - } if (codeLens.lensTitle.toLocaleLowerCase().includes("error hotspot")) { return `/${TAB_IDS.ERRORS}`; } + if (!codeLens.scopeCodeObjectId?.startsWith("span:")) { + return; + } + if (codeLens.importance <= 4) { return `/${TAB_IDS.ISSUES}`; }