The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
fix: onEnter creating new function page in settings (#7236)
Harshit Singh2fedf0d2fc58
diff --git a/packages/twenty-front/src/modules/settings/serverless-functions/components/SettingsServerlessFunctionsTable.tsx b/packages/twenty-front/src/modules/settings/serverless-functions/components/SettingsServerlessFunctionsTable.tsxindex a7b857bf621..d34186b3f73 100644--- a/packages/twenty-front/src/modules/settings/serverless-functions/components/SettingsServerlessFunctionsTable.tsx+++ b/packages/twenty-front/src/modules/settings/serverless-functions/components/SettingsServerlessFunctionsTable.tsx@@ -8,10 +8,7 @@ import { Table } from '@/ui/layout/table/components/Table';import { TableBody } from '@/ui/layout/table/components/TableBody';import { TableHeader } from '@/ui/layout/table/components/TableHeader';import { TableRow } from '@/ui/layout/table/components/TableRow';-import { useScopedHotkeys } from '@/ui/utilities/hotkey/hooks/useScopedHotkeys';import styled from '@emotion/styled';-import { useNavigate } from 'react-router-dom';-import { Key } from 'ts-key-enum';import { ServerlessFunction } from '~/generated-metadata/graphql';import { useHotkeyScopeOnMount } from '~/hooks/useHotkeyScopeOnMount';@@ -25,19 +22,11 @@ const StyledTableBody = styled(TableBody)`export const SettingsServerlessFunctionsTable = () => {const { serverlessFunctions } = useGetManyServerlessFunctions();- const navigate = useNavigate();useHotkeyScopeOnMount(SettingsServerlessFunctionHotkeyScope.ServerlessFunction,);- useScopedHotkeys(- [Key.Enter],- () => {- navigate(getSettingsPagePath(SettingsPath.NewServerlessFunction));- },- SettingsServerlessFunctionHotkeyScope.ServerlessFunction,- );return (<>{serverlessFunctions.length ? (