Skip to content

Commit

Permalink
docs show issue (#1042) (#1043)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekachxaidze98 authored Dec 18, 2023
1 parent a75681c commit 62ccc17
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"prettier": "^2.1.2"
},
"dependencies": {
"@oacore/design": "^4.9.54",
"@oacore/design": "^4.9.55",
"@octokit/rest": "^18.5.0",
"bootstrap": "^4.5.3",
"camelize": "^1.0.0",
Expand Down
6 changes: 3 additions & 3 deletions templates/documentations/dataProviderDocs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function normalizeHref(str) {
const test = str.replace('#', '')
return test.replace('_', '-')
}
const DataProviderDocs = ({ items }) => {
const DataProviderDocs = ({ dataProviderDocs }) => {
const [highlight, setHighlight] = useState()
const [navActiveIndex, setNavActiveIndex] = useState(null)
const route = useRouter()
Expand All @@ -31,7 +31,7 @@ const DataProviderDocs = ({ items }) => {
behavior: 'smooth',
block: 'center',
})
const n = items?.items?.findIndex((item) => item.id === id)
const n = dataProviderDocs?.items?.findIndex((item) => item.id === id)
setHighlight(n)
}
}, 100)
Expand All @@ -50,7 +50,7 @@ const DataProviderDocs = ({ items }) => {
return (
<Layout className={styles.docsLayout}>
<DocumentationMembership
docs={items}
docs={dataProviderDocs?.items}
highlight={highlight}
setHighlight={setHighlight}
imageSource
Expand Down

0 comments on commit 62ccc17

Please sign in to comment.