Skip to content

Commit

Permalink
Circulars hide sort button without a query (#1928)
Browse files Browse the repository at this point in the history
Fixes #1926.
  • Loading branch information
tylerbarna authored Feb 15, 2024
1 parent 8139725 commit 83aaf8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/routes/_gcn.circulars._archive._index/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export default function () {
defaultStartDate={startDate}
defaultEndDate={endDate}
/>
<SortSelector form={formId} defaultValue={sort} />
{query && <SortSelector form={formId} defaultValue={sort} />}
<Link to={`/circulars/new${searchString}`}>
<Button
type="button"
Expand Down
2 changes: 1 addition & 1 deletion app/routes/_gcn.circulars/circulars.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export async function search({
const [startTime, endTime] = getValidDates(startDate, endDate)

const sortObj =
sort === 'relevance'
sort === 'relevance' && query
? {}
: {
circularId: {
Expand Down

0 comments on commit 83aaf8d

Please sign in to comment.