Remove unnecessary function

This commit is contained in:
Robert
2023-07-03 10:55:27 +01:00
parent f0af593b67
commit e5d4545150

View File

@@ -42,11 +42,6 @@ export function AlertTableHeader({
}); });
}, [getNextSortState]); }, [getNextSortState]);
const clickCallback = useCallback(
() => toggleSortStateForColumn(),
[toggleSortStateForColumn],
);
return ( return (
<thead> <thead>
<tr> <tr>
@@ -54,7 +49,7 @@ export function AlertTableHeader({
<th <th
className={`${sortClass()} vscode-codeql__alert-message-cell`} className={`${sortClass()} vscode-codeql__alert-message-cell`}
colSpan={3} colSpan={3}
onClick={clickCallback} onClick={toggleSortStateForColumn}
> >
Message Message
</th> </th>