Fix data not loading on recordTable
This commit is contained in:
@ -2,7 +2,6 @@ import styled from '@emotion/styled';
|
|||||||
import { useVirtual } from '@tanstack/react-virtual';
|
import { useVirtual } from '@tanstack/react-virtual';
|
||||||
import { useRecoilValue } from 'recoil';
|
import { useRecoilValue } from 'recoil';
|
||||||
|
|
||||||
import { isNavbarSwitchingSizeState } from '@/ui/layout/states/isNavbarSwitchingSizeState';
|
|
||||||
import { useScrollWrapperScopedRef } from '@/ui/utilities/scroll/hooks/useScrollWrapperScopedRef';
|
import { useScrollWrapperScopedRef } from '@/ui/utilities/scroll/hooks/useScrollWrapperScopedRef';
|
||||||
|
|
||||||
import { RowIdContext } from '../contexts/RowIdContext';
|
import { RowIdContext } from '../contexts/RowIdContext';
|
||||||
@ -27,7 +26,6 @@ export const RecordTableBody = () => {
|
|||||||
|
|
||||||
const tableRowIds = useRecoilValue(tableRowIdsState);
|
const tableRowIds = useRecoilValue(tableRowIdsState);
|
||||||
|
|
||||||
const isNavbarSwitchingSize = useRecoilValue(isNavbarSwitchingSizeState);
|
|
||||||
const isFetchingRecordTableData = useRecoilValue(
|
const isFetchingRecordTableData = useRecoilValue(
|
||||||
isFetchingRecordTableDataState,
|
isFetchingRecordTableDataState,
|
||||||
);
|
);
|
||||||
@ -45,7 +43,7 @@ export const RecordTableBody = () => {
|
|||||||
? rowVirtualizer.totalSize - items[items.length - 1].end
|
? rowVirtualizer.totalSize - items[items.length - 1].end
|
||||||
: 0;
|
: 0;
|
||||||
|
|
||||||
if (isFetchingRecordTableData || isNavbarSwitchingSize) {
|
if (isFetchingRecordTableData) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -9942,7 +9942,7 @@ eslint-plugin-flowtype@^8.0.3:
|
|||||||
lodash "^4.17.21"
|
lodash "^4.17.21"
|
||||||
string-natural-compare "^3.0.1"
|
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"
|
version "2.28.0"
|
||||||
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.28.0.tgz#8d66d6925117b06c4018d491ae84469eb3cb1005"
|
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.28.0.tgz#8d66d6925117b06c4018d491ae84469eb3cb1005"
|
||||||
integrity sha512-B8s/n+ZluN7sxj9eUf7/pRFERX0r5bnFA2dCaLHy2ZeaQEAz0k+ZZkFWRFHJAqxfxQDx6KLv9LeIki7cFdwW+Q==
|
integrity sha512-B8s/n+ZluN7sxj9eUf7/pRFERX0r5bnFA2dCaLHy2ZeaQEAz0k+ZZkFWRFHJAqxfxQDx6KLv9LeIki7cFdwW+Q==
|
||||||
|
|||||||
@ -22,7 +22,7 @@ const configService = new ConfigService();
|
|||||||
export const typeORMMetadataModuleOptions: TypeOrmModuleOptions = {
|
export const typeORMMetadataModuleOptions: TypeOrmModuleOptions = {
|
||||||
url: configService.get<string>('PG_DATABASE_URL'),
|
url: configService.get<string>('PG_DATABASE_URL'),
|
||||||
type: 'postgres',
|
type: 'postgres',
|
||||||
logging: ['query', 'error'],
|
logging: ['error'],
|
||||||
schema: 'metadata',
|
schema: 'metadata',
|
||||||
entities: [__dirname + '/**/*.entity{.ts,.js}'],
|
entities: [__dirname + '/**/*.entity{.ts,.js}'],
|
||||||
synchronize: false,
|
synchronize: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user