humanmade / humanmade/altis-documentation

Console error on documentation pages.

Open
#615 0 comments 0 reactions 0 assignees View on GitHub
could have to refine
Dominant language
PHP
Stars
6
Forks
3
Avg merge
1d 14h
Merged PRs (30d)
2

Description

When loading the documentation pages in the dashboard. A console error is displayed.
```
Uncaught TypeError: t[(t.length - 1)] is undefined
u highlightjs-line-numbers.min.js:97
d highlightjs-line-numbers.min.js:93
s highlightjs-line-numbers.min.js:76
setTimeout handler*g highlightjs-line-numbers.min.js:145
s highlightjs-line-numbers.min.js:75
l highlightjs-line-numbers.min.js:68
i highlightjs-line-numbers.min.js:61
i highlightjs-line-numbers.min.js:60
script.js:2
2 highlightjs-line-numbers.min.js:97:16
```

It's worth noting the script in question is quite old (version v9.15.6) and there are [newer versions](https://highlightjs.org/news). [Releases list](https://github.com/highlightjs/highlight.js/releases).

The syntax highlighting still seems to work fine.

Steps to reproduce:
1. Load a documentation page in the dashboard
2. Check the JS console in the browser.

The page should show correctly and there should be no errors in the console.

![Image](https://github.com/user-attachments/assets/7566f687-2dbc-4277-b6f0-caaf301a9a16)

Acceptance criteria:

- [ ] The page should show correctly without errors in the console

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.