Skip to content

Commit 58da2f8

Browse files
committed
Fixed bug following history refactor
1 parent 3eabd7a commit 58da2f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

js/threads/StoryThread.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class StoryThread extends BaseThread {
5656
if (bookmarkCount === 0) {
5757
return null;
5858
}
59-
const possibleNodes = this._history.slice(Math.max(this._history.size - bookmarkCount - 1, 0));
59+
const possibleNodes = this._history.nodes.slice(Math.max(this._history.size - bookmarkCount - 1, 0));
6060
for (let nodeIndex = possibleNodes.length - 1; nodeIndex >= 0; nodeIndex--) {
6161
const node = possibleNodes[nodeIndex];
6262
if (!StoryThread.isAppendix(node['title'])) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "akun-api",
3-
"version": "4.0.1",
3+
"version": "4.0.2",
44
"description": "A module intended to enable easy interactions with Anonkun",
55
"main": "index.js",
66
"type": "module",

0 commit comments

Comments
 (0)