TP-53680 | Open incidents in a new tab on cmd+click
This commit is contained in:
@@ -135,12 +135,14 @@ const SearchResultsTable: FC<SearchResultTableProps> = ({
|
||||
if (params?.api?.sizeColumnsToFit) params.api.sizeColumnsToFit();
|
||||
};
|
||||
|
||||
const handleRowClick = (event: any) => {
|
||||
const handleRowClick = event => {
|
||||
fireEvent(EVENT_NAME.Houston_Check_Incident, {
|
||||
screen_name: SCREEN_NAME.DASHBOARD_PAGE,
|
||||
});
|
||||
if (event?.data) {
|
||||
window.open(`/incident/${event.data?.id}`);
|
||||
if (event) {
|
||||
event.event.ctrlKey || event.event.metaKey
|
||||
? window.open(`/incident/${event.data?.id}`)
|
||||
: navigate(`/incident/${event.data?.id}`);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user