Remove unnecessary function
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user