Skip to content

Commit

Permalink
Merge pull request #493 from storyblok/fix/int-852
Browse files Browse the repository at this point in the history
fix(int-852): change default state of the resolve nested relations
  • Loading branch information
ademarCardoso authored Mar 21, 2023
2 parents ed8a3b3 + a99a217 commit 4186c1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ We added retro-compatibility when using `resolve_assets: 1` parameter under V2.
- (`timeout` Integer, optional)
- (`maxRetries` Integer, optional, defaults to 5)
- (`richTextSchema` Object, optional - your custom schema for RichTextRenderer)
- (`resolveNestedRelations` Boolean, optional - By default is true)
- (`endpoint` String, optional)

#### Activating request cache
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class Storyblok {
this.cache = config.cache || { clear: 'manual' }
this.helpers = new SbHelpers()
this.resolveCounter = 0
this.resolveNestedRelations = false
this.resolveNestedRelations = config.resolveNestedRelations || true

this.client = new SbFetch({
baseURL: endpoint,
Expand Down

0 comments on commit 4186c1e

Please sign in to comment.