File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class CloudinaryComponent extends Component {
2626 if ( children === undefined || children === null ) return null ;
2727 let mapped = React . Children . map ( children , child => {
2828 let options = { } ;
29- if ( child . type && child . type . name === "Transformation" ) {
29+ if ( child . type && child . type . exposesProps ) {
3030 options = CloudinaryComponent . normalizeOptions ( child . props , child . context ) ;
3131 }
3232 let childOptions = this . getChildTransformations ( child . props . children ) ;
Original file line number Diff line number Diff line change @@ -16,5 +16,6 @@ class Transformation extends CloudinaryComponent {
1616Transformation . propTypes = CloudinaryComponent . propTypes ;
1717Transformation . defaultProps = { } ;
1818Transformation . contextTypes = { } ;
19+ Transformation . exposesProps = true ;
1920
2021export default Transformation ;
You can’t perform that action at this time.
0 commit comments