Skip to content

Commit 7f68fde

Browse files
author
dandimeo
committed
fix missing fragment for openapi anchor
1 parent df8fb01 commit 7f68fde

File tree

1 file changed

+2
-0
lines changed
  • site/themes/arangodb-docs-theme/static/js

1 file changed

+2
-0
lines changed

site/themes/arangodb-docs-theme/static/js/theme.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,8 @@ function hideEmptyOpenapiDiv() {
321321
fragment = location.hash.replace("#", "")
322322
if (fragment) {
323323
var element = document.getElementById(fragment);
324+
if (!element) return;
325+
324326
if (element.tagName == "DETAILS") {
325327
method = fragment.split("_").slice(0,2).join("_")
326328
fields = fragment.split("_").slice(2)

0 commit comments

Comments
 (0)