Fixes person navigation after image upload (#9076)

Fixes #8949
This commit is contained in:
Mohammed Abdul Razak Wahab 2024-12-18 23:14:00 +05:30 committed by GitHub
parent 71254bfca0
commit f620fd3c18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,7 +62,10 @@ export const useRecordShowPagePagination = (
useFindManyRecords({
skip: loadingCursor,
fetchPolicy: 'network-only',
filter,
filter: {
...filter,
id: { neq: objectRecordId },
},
orderBy,
cursorFilter: isNonEmptyString(cursorFromRequest)
? {
@ -81,7 +84,10 @@ export const useRecordShowPagePagination = (
const { loading: loadingRecordAfter, records: recordsAfter } =
useFindManyRecords({
skip: loadingCursor,
filter,
filter: {
...filter,
id: { neq: objectRecordId },
},
fetchPolicy: 'network-only',
orderBy,
cursorFilter: cursorFromRequest