Skip to content

Commit

Permalink
Show selected filter
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbyul-here committed Sep 18, 2024
1 parent bf3088a commit 296b008
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/scripts/components/common/browse-controls/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function BrowseControls(props: BrowseControlsProps) {
key={name}
prefix={name}
items={[optionAll].concat(values)}
currentId={(taxonomies[name]?.length ? taxonomies[name][0] as string : 'all')}
currentId={(taxonomies[name]? taxonomies[name] as unknown as string : 'all')}
onChange={(v) => {
onAction(FilterActions.TAXONOMY, { key: name, value: v });
}}
Expand Down Expand Up @@ -141,9 +141,8 @@ interface DropdownOptionsProps {

function DropdownOptions(props: DropdownOptionsProps) {
const { size, items, currentId, onChange, prefix } = props;

const currentItem = items.find((d) => d.id === currentId);

return (
<DropdownScrollable
alignment='left'
Expand Down

0 comments on commit 296b008

Please sign in to comment.