Skip to content

Commit

Permalink
Fix discover search disabled, set page to 1 on search
Browse files Browse the repository at this point in the history
  • Loading branch information
solomonhawk committed Nov 14, 2024
1 parent 532a5af commit eafab06
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export function TableVersionsSearchBrowse() {
const params = new URLSearchParams(location.search);

params.set("q", value);
params.set("page", "1");

setSearchParams(params);
}
Expand Down Expand Up @@ -216,7 +217,7 @@ function SearchForm({
size="sm"
variant="ghost"
className="mr-1"
disabled={!value}
disabled={value === defaultSearchQuery}
>
Search
</Button>
Expand Down Expand Up @@ -297,7 +298,7 @@ function ListItem({
{tableVersion.availableTables.length > 5 ? (
<span className="text-xs text-foreground">
{showAllTables
? "Show fewer"
? "show fewer"
: `and ${tableVersion.availableTables.length - 5} more`}
</span>
) : null}
Expand Down

0 comments on commit eafab06

Please sign in to comment.