diff --git a/gui/src/pages/history.tsx b/gui/src/pages/history.tsx index 8344263e1..47744fd7f 100644 --- a/gui/src/pages/history.tsx +++ b/gui/src/pages/history.tsx @@ -348,22 +348,23 @@ function History() { onChange={(e) => setSearchTerm(e.target.value)} /> { - if (searchInputRef.current.value !== "*") { + if (searchInputRef.current.value === "") { searchInputRef.current.value = "*"; setSearchTerm("*"); + } else { + searchInputRef.current.value = ""; + setSearchTerm(""); } }} > - Show All + {searchTerm === "" ? "Show All" : "Clear"}