Skip to content

Commit

Permalink
ARTESCA-12369: Fix the reset not working in accounts/users table
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengYanJin committed May 6, 2024
1 parent 427f17a commit 8c89610
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/react/account/AwsPaginatedResourceTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ const AwsPaginatedResourceTable = <ENTITY, PREPARED_ENTITY = ENTITY>({
value={search}
placeholder={'Search'}
disableToggle
onReset={() => {
queryParams.delete(SEARCH_QUERY_PARAM);
history.push(`${match.url}?${queryParams.toString()}`);
}}
onChange={(evt: ChangeEvent<HTMLInputElement>) => {
setSearch(evt.target.value);
}}
Expand Down

0 comments on commit 8c89610

Please sign in to comment.