File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
extensions/ql-vscode/src/view/results Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export function AlertTable(props: AlertTableProps) {
4545 * first item, open all the rest as well. This mimics vscode's file
4646 * explorer tree view behavior.
4747 */
48- const toggle = ( e : React . MouseEvent , keys : Keys . ResultKey [ ] ) => {
48+ const toggle = useCallback ( ( e : React . MouseEvent , keys : Keys . ResultKey [ ] ) => {
4949 const keyStrings = keys . map ( Keys . keyToString ) ;
5050 setExpanded ( ( previousExpanded ) => {
5151 const expanded = new Set ( previousExpanded ) ;
@@ -63,7 +63,7 @@ export function AlertTable(props: AlertTableProps) {
6363 } ) ;
6464 e . stopPropagation ( ) ;
6565 e . preventDefault ( ) ;
66- } ;
66+ } , [ ] ) ;
6767
6868 const getNewSelection = (
6969 key : Keys . ResultKey | undefined ,
You can’t perform that action at this time.
0 commit comments