Skip to content

Commit

Permalink
chore: fix type issue with relations map
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Aug 22, 2024
1 parent c3ecdec commit f8d47ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ class Storyblok {
if (typeof jtree[treeItem] === 'string') {
jtree[treeItem] = this.getStoryReference(resolveId, jtree[treeItem])
} else if (Array.isArray(jtree[treeItem])) {
jtree[treeItem] = jtree[treeItem]
jtree[treeItem] = jtree[treeItem as keyof ISbStoriesParams]
.map((uuid: string) => this.getStoryReference(resolveId, uuid))
.filter(Boolean)
}
Expand Down

0 comments on commit f8d47ee

Please sign in to comment.