We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 636d0bf commit 3983087Copy full SHA for 3983087
1 file changed
extensions/ql-vscode/src/view/results/AlertTableResultRow.tsx
@@ -42,6 +42,10 @@ export function AlertTableResultRow(props: Props) {
42
[resultIndex],
43
);
44
45
+ const handleSarifLocationClicked = useMemo(
46
+ () => updateSelectionCallback(resultKey),
47
+ [resultKey, updateSelectionCallback],
48
+ );
49
const handleDropdownClick = useMemo(() => {
50
const indices =
51
Keys.getAllPaths(result).length === 1
@@ -83,7 +87,7 @@ export function AlertTableResultRow(props: Props) {
83
87
loc={result.locations[0]}
84
88
sourceLocationPrefix={sourceLocationPrefix}
85
89
databaseUri={databaseUri}
86
- onClick={updateSelectionCallback(resultKey)}
90
+ onClick={handleSarifLocationClicked}
91
/>
92
)}
93
</td>
0 commit comments