-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix:fix search on paginated lists #9198
fix:fix search on paginated lists #9198
Conversation
datahub-web-react/src/app/permissions/policy/ManagePolicies.tsx
Outdated
Show resolved
Hide resolved
@@ -92,7 +92,10 @@ export const GroupList = () => { | |||
fontSize: 12, | |||
}} | |||
onSearch={() => null} | |||
onQueryChange={(q) => setQuery(q)} | |||
onQueryChange={(q) => { | |||
setPage(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
}, | ||
}, | ||
fetchPolicy: 'cache-first', | ||
fetchPolicy: (query?.length || 0) > 0 ? 'no-cache' : 'cache-first', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Just waiting for ci to pass
Checklist