Skip to content

Commit

Permalink
fix(ui/token): show search input if it contains user's input (#2439)
Browse files Browse the repository at this point in the history
User may use search to delete the token and after deletion we still want to have the search input so user could get back other token. Before user faced the empty table and no search input.

Refs: #2436
  • Loading branch information
erka authored Nov 23, 2023
1 parent 8164c5c commit 9c5aabb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/components/tokens/TokenTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export default function TokenTable(props: TokenTableProps) {

return (
<>
{tokens.length >= searchThreshold && (
{(tokens.length >= searchThreshold || filter != '') && (
<Searchbox className="mb-6" value={filter ?? ''} onChange={setFilter} />
)}
<div className="-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8">
Expand Down

0 comments on commit 9c5aabb

Please sign in to comment.