Skip to content

Commit

Permalink
feat: add requiredDataModels to renderComponentOnly method
Browse files Browse the repository at this point in the history
  • Loading branch information
alharris-at committed Feb 25, 2022
1 parent 78cb59a commit 325d369
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export abstract class ReactStudioTemplateRenderer extends StudioTemplateRenderer
// do not produce declaration becuase it is not used
const { componentText: compText } = transpile(result, { ...this.renderConfig, renderTypeDeclarations: false });

return { compText, importsText };
return { compText, importsText, requiredDataModels: this.componentMetadata.requiredDataModels };
}

renderComponentInternal() {
Expand Down

0 comments on commit 325d369

Please sign in to comment.