Fix data not loading on recordTable

This commit is contained in:
Charles Bochet 2023-11-03 14:53:11 +01:00
parent b56f6f3947
commit b4af15467f
3 changed files with 3 additions and 5 deletions

View File

@ -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;
}

View File

@ -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==

View File

@ -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,