We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5244a1c commit 7ca456dCopy full SHA for 7ca456d
1 file changed
extensions/ql-vscode/src/view/result-table-utils.tsx
@@ -68,12 +68,6 @@ export function renderLocation(
68
callback?: () => void
69
): JSX.Element {
70
71
- if (loc === undefined) {
72
- return <span />;
73
- } else if (isStringLoc(loc)) {
74
- return <a href={loc}>{loc}</a>;
75
- }
76
-
77
// If the label was empty, use a placeholder instead, so the link is still clickable.
78
let displayLabel = label;
79
if (!label) {
@@ -82,6 +76,12 @@ export function renderLocation(
82
displayLabel = `[whitespace: "${label}"]`;
83
}
84
+ if (loc === undefined) {
80
+ return <span>{displayLabel}</span>;
81
+ } else if (isStringLoc(loc)) {
+ return <a href={loc}>{loc}</a>;
+ }
+
85
const resolvableLoc = tryGetResolvableLocation(loc);
86
if (resolvableLoc !== undefined) {
87
return (
0 commit comments