Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1704 | fixing last index for global search
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Jan 19, 2024
1 parent 44ca32a commit 336138f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/search/SearchInputDrawer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const SearchInputDrawer = ({open, onClose, input, initiateSearch, inputProps}) =
const [, ownerType, owner, repoType, repo,] = location.pathname.split('/');
const isNested = Boolean(location.pathname !== '/search/' && location.pathname !== '/' && ownerType && owner && repoType && repo)
const [focus, setFocus] = React.useState(0);
const lastIndex = 2
const lastIndex = isNested ? 2 : 1
const inputPlaceholder = input || '...'
const onClickOption = (event, nested) => {
event.persist()
Expand Down

0 comments on commit 336138f

Please sign in to comment.