Skip to content

Commit 56a954d

Browse files
committed
fix: Don't reverse Page path
1 parent ec6715b commit 56a954d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/api/Confluence.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export class Confluence {
118118
throw new ConfluenceError(`Document ${documentId} has no URL}`)
119119
}
120120

121-
const path = document.ancestors.reverse().map((ancestor) => ancestor.title)
121+
const path = document.ancestors.map((ancestor) => ancestor.title)
122122

123123
const documentInfo = new DocumentInfo(documentId, author, lastVersionDate, lastVersionMessage, title, path, url)
124124

0 commit comments

Comments
 (0)