Skip to content

Commit 34bd40d

Browse files
authored
Update index.jsx
1 parent b8423f2 commit 34bd40d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/generators/web/ui/components/SearchBox

src/generators/web/ui/components/SearchBox/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import SearchHit from '@node-core/ui-components/Common/Search/Results/Hit';
1010
import styles from './index.module.css';
1111
import useOrama from '../../hooks/useOrama.mjs';
1212

13-
const SearchBox = ({ metadata }) => {
14-
const client = useOrama(metadata.path);
13+
const SearchBox = ({ pathname }) => {
14+
const client = useOrama(pathname);
1515

1616
return (
1717
<SearchModal client={client} placeholder="Start typing...">

0 commit comments

Comments
 (0)