Skip to content

Commit

Permalink
Fixes person navigation after image upload (#9076)
Browse files Browse the repository at this point in the history
Fixes #8949
  • Loading branch information
mdrazak2001 authored Dec 18, 2024
1 parent 71254bf commit f620fd3
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ export const useRecordShowPagePagination = (
useFindManyRecords({
skip: loadingCursor,
fetchPolicy: 'network-only',
filter,
filter: {
...filter,
id: { neq: objectRecordId },
},
orderBy,
cursorFilter: isNonEmptyString(cursorFromRequest)
? {
Expand All @@ -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
Expand Down

0 comments on commit f620fd3

Please sign in to comment.