Skip to content

Commit

Permalink
fix: pass useEmbedded to mercure manager's data transformer (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelSuwinski authored Mar 6, 2024
1 parent a3fa99c commit 62e98b0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/hydra/dataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -703,8 +703,13 @@ function dataProvider(
apiDocumentationParser,
mercure: factoryParams.mercure ?? true,
});
mercureManager.setDataTransformer(
transformJsonLdDocumentToReactAdminDocument,
mercureManager.setDataTransformer((jsonLdDocument) =>
transformJsonLdDocumentToReactAdminDocument(
jsonLdDocument,
true,
!disableCache,
useEmbedded,
),
);

return {
Expand Down

0 comments on commit 62e98b0

Please sign in to comment.