Fix optimistic rendering issue

This commit is contained in:
Charles Bochet
2023-11-25 03:08:36 +01:00
parent 66162e6693
commit ddc054be52
2 changed files with 2 additions and 1 deletions

View File

@ -82,6 +82,7 @@ export const useFindManyObjectRecords = <
variables: {
filter: filter ?? {},
orderBy: orderBy ?? {},
limit: limit,
},
definition: getRecordOptimisticEffectDefinition({
objectMetadataItem,

View File

@ -51,7 +51,7 @@ export const useObjectRecordTable = () => {
if (foundObjectMetadataItem) {
registerOptimisticEffect({
variables: { orderBy, filter },
variables: { orderBy, filter, limit: 60 },
definition: getRecordOptimisticEffectDefinition({
objectMetadataItem: foundObjectMetadataItem,
}),