Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/CloudinaryComponent/CloudinaryComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class CloudinaryComponent extends Component {
if(children === undefined || children === null) return null;
let mapped = React.Children.map(children, child =>{
let options = {};
if (child.type && child.type.name === "Transformation"){
if (child.type && child.type._type === "Transformation"){
options = CloudinaryComponent.normalizeOptions(child.props, child.context);
}
let childOptions = this.getChildTransformations(child.props.children);
Expand Down
2 changes: 2 additions & 0 deletions src/components/Transformation/Transformation.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import CloudinaryComponent from '../CloudinaryComponent';
* Define a transformation that is applied to the parent tag.
*/
class Transformation extends CloudinaryComponent {
static _type = "Transformation";

constructor(props) {
super(props);
}
Expand Down