The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fixes (#2256)
Lucas Bordeau1728045be41e
diff --git a/front/craco.config.js b/front/craco.config.jsindex 91502035de6..1e0e20c9833 100644--- a/front/craco.config.js+++ b/front/craco.config.js@@ -22,7 +22,6 @@ module.exports = {'@': path.resolve(__dirname, 'src/modules'),'@testing': path.resolve(__dirname, 'src/testing'),},- mode: 'extends',// TODO: remove this workaround by resolving source map errors with @sniptt/guardsconfigure: {module: {diff --git a/front/src/modules/metadata/components/ObjectDataTableEffect.tsx b/front/src/modules/metadata/components/ObjectDataTableEffect.tsxindex 4e9e7d9db9d..b61ec8a919e 100644--- a/front/src/modules/metadata/components/ObjectDataTableEffect.tsx+++ b/front/src/modules/metadata/components/ObjectDataTableEffect.tsx@@ -36,11 +36,13 @@ export const ObjectDataTableEffect = ({const tableRecoilScopeId = useRecoilScopeId(TableRecoilScopeContext);const handleViewSelect = useRecoilCallback(({ set, snapshot }) =>- (viewId: string) => {- const currentView = snapshot.getLoadable(- currentViewIdScopedState({ scopeId: tableRecoilScopeId }),- ).getValue()-+ (viewId: string) => {+ const currentView = snapshot+ .getLoadable(+ currentViewIdScopedState({ scopeId: tableRecoilScopeId }),+ )+ .getValue();+if (currentView === viewId) {return;}diff --git a/front/src/modules/views/hooks/internal/useViewFields.ts b/front/src/modules/views/hooks/internal/useViewFields.tsindex b601d8c9b5c..754b1937595 100644--- a/front/src/modules/views/hooks/internal/useViewFields.ts+++ b/front/src/modules/views/hooks/internal/useViewFields.ts@@ -4,6 +4,7 @@ import { useRecoilCallback } from 'recoil';import { ColumnDefinition } from '@/ui/data/data-table/types/ColumnDefinition';import { FieldMetadata } from '@/ui/data/field/types/FieldMetadata';+import { GET_VIEWS } from '@/views/graphql/queries/getViews';import { currentViewIdScopedState } from '@/views/states/currentViewIdScopedState';import { savedViewFieldByKeyScopedFamilySelector } from '@/views/states/selectors/savedViewFieldByKeyScopedFamilySelector';import { viewObjectIdScopeState } from '@/views/states/viewObjectIdScopeState';@@ -13,7 +14,6 @@ import {} from '~/generated/graphql';import { GET_VIEW_FIELDS } from '../../graphql/queries/getViewFields';-import { GET_VIEWS } from '@/views/graphql/queries/getViews';export const toViewFieldInput = (objectId: string,