The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix data not loading on recordTable
Charles Bochetb4af15467f61
diff --git a/front/src/modules/ui/object/record-table/components/RecordTableBody.tsx b/front/src/modules/ui/object/record-table/components/RecordTableBody.tsxindex 57153b753fd..5ddedc07241 100644--- a/front/src/modules/ui/object/record-table/components/RecordTableBody.tsx+++ b/front/src/modules/ui/object/record-table/components/RecordTableBody.tsx@@ -2,7 +2,6 @@ import styled from '@emotion/styled';import { useVirtual } from '@tanstack/react-virtual';import { useRecoilValue } from 'recoil';-import { isNavbarSwitchingSizeState } from '@/ui/layout/states/isNavbarSwitchingSizeState';import { useScrollWrapperScopedRef } from '@/ui/utilities/scroll/hooks/useScrollWrapperScopedRef';import { RowIdContext } from '../contexts/RowIdContext';@@ -27,7 +26,6 @@ export const RecordTableBody = () => {const tableRowIds = useRecoilValue(tableRowIdsState);- const isNavbarSwitchingSize = useRecoilValue(isNavbarSwitchingSizeState);const isFetchingRecordTableData = useRecoilValue(isFetchingRecordTableDataState,);@@ -45,7 +43,7 @@ export const RecordTableBody = () => {? rowVirtualizer.totalSize - items[items.length - 1].end: 0;- if (isFetchingRecordTableData || isNavbarSwitchingSize) {+ if (isFetchingRecordTableData) {return null;}diff --git a/front/yarn.lock b/front/yarn.lockindex f701b58bc8a..9b017e0a0e2 100644--- a/front/yarn.lock+++ b/front/yarn.lock@@ -9942,7 +9942,7 @@ eslint-plugin-flowtype@^8.0.3:lodash "^4.17.21"string-natural-compare "^3.0.1"-eslint-plugin-import@^2.25.3, eslint-plugin-import@^2.26.0:+eslint-plugin-import@^2.25.3:version "2.28.0"resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.28.0.tgz#8d66d6925117b06c4018d491ae84469eb3cb1005"integrity sha512-B8s/n+ZluN7sxj9eUf7/pRFERX0r5bnFA2dCaLHy2ZeaQEAz0k+ZZkFWRFHJAqxfxQDx6KLv9LeIki7cFdwW+Q==diff --git a/server/src/metadata/metadata.datasource.ts b/server/src/metadata/metadata.datasource.tsindex 08d5b3c9cc6..86ab243526c 100644--- a/server/src/metadata/metadata.datasource.ts+++ b/server/src/metadata/metadata.datasource.ts@@ -22,7 +22,7 @@ const configService = new ConfigService();export const typeORMMetadataModuleOptions: TypeOrmModuleOptions = {url: configService.get<string>('PG_DATABASE_URL'),type: 'postgres',- logging: ['query', 'error'],+ logging: ['error'],schema: 'metadata',entities: [__dirname + '/**/*.entity{.ts,.js}'],synchronize: false,