Skip to content

Commit

Permalink
fix: Update term on Search page correctly (#14800)
Browse files Browse the repository at this point in the history
  • Loading branch information
olerichter00 authored Nov 13, 2024
1 parent 48db866 commit 90b940f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Apps/Search/SearchApp.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react"
import {
Box,
FullBleed,
Expand All @@ -8,17 +7,17 @@ import {
Text,
} from "@artsy/palette"
import { SearchApp_viewer$data } from "__generated__/SearchApp_viewer.graphql"
import { AppContainer } from "Apps/Components/AppContainer"
import { NavigationTabsFragmentContainer as NavigationTabs } from "Apps/Search/Components/NavigationTabs"
import { SearchMeta } from "Apps/Search/Components/SearchMeta"
import { RecentlyViewed } from "Components/RecentlyViewed"
import { Sticky } from "Components/Sticky"
import React from "react"
import { createFragmentContainer, graphql } from "react-relay"
import { ZeroState } from "./Components/ZeroState"
import { useRouter } from "System/Hooks/useRouter"
import { Sticky } from "Components/Sticky"
import { AppContainer } from "Apps/Components/AppContainer"
import { ZeroState } from "./Components/ZeroState"

import { Jump } from "Utils/Hooks/useJump"
import { usePrevious } from "@artsy/palette"

export interface SearchAppProps {
viewer: SearchApp_viewer$data
Expand Down Expand Up @@ -50,7 +49,7 @@ export const SearchApp: React.FC<SearchAppProps> = ({ viewer, children }) => {
const { query } = location
const { aggregations } = searchConnection ?? {}

const term = usePrevious(query.term ?? "")
const term = query.term
const typeAggregation = aggregations?.find(agg => agg?.slice === "TYPE")
?.counts

Expand Down

0 comments on commit 90b940f

Please sign in to comment.