Skip to content

Commit

Permalink
Merge pull request #568 from storyblok/bugfix/pass-down-deprecation-s…
Browse files Browse the repository at this point in the history
…upressor-render-richtext

fix: supress legacy richtext warning on SDK level
  • Loading branch information
alvarosabu authored Sep 4, 2024
2 parents 3808e50 + 201aea0 commit 5217004
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ export const renderRichText = (
}
}
// NOTE: This will warn the user about deprecation of legacy Richtext when https://github.com/storyblok/storyblok-js-client/pull/845 is merged
return localResolver.render(data);
// WE supress the warning on SDK level to avoid spamming the console since user would not need to do anything about it
return localResolver.render(data, {}, true);
};

export const loadStoryblokBridge = () => loadBridge(bridgeLatest);
Expand Down

0 comments on commit 5217004

Please sign in to comment.