Skip to content

Commit

Permalink
fix: reset search after creating resource tag
Browse files Browse the repository at this point in the history
  • Loading branch information
iperalta7 committed Aug 7, 2024
1 parent d8d779c commit 48dec78
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/member-profile/app/shared/components/resource-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,13 @@ export function ResourceTagsField({
function reset() {
setSearch('');
setNewTagId(id());
listFetcher.submit(
{ search: '' },
{
action: '/api/tags/search',
method: 'get',
}
);
}

return (
Expand Down

0 comments on commit 48dec78

Please sign in to comment.