Fix ComponentId camelCase
This commit is contained in:
parent
2875dee9ae
commit
c1c4d235b1
|
@ -70,7 +70,7 @@ class ProductCategoriesBlock extends Component {
|
|||
}
|
||||
|
||||
render() {
|
||||
const { attributes, categories, ComponentId } = this.props;
|
||||
const { attributes, categories, componentId } = this.props;
|
||||
const { className, isDropdown } = attributes;
|
||||
const classes = classnames(
|
||||
'wc-block-product-categories',
|
||||
|
@ -81,7 +81,7 @@ class ProductCategoriesBlock extends Component {
|
|||
}
|
||||
);
|
||||
|
||||
const selectId = `prod-categories-${ ComponentId }`;
|
||||
const selectId = `prod-categories-${ componentId }`;
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
|
|
|
@ -22,11 +22,11 @@ const withComponentId = ( OriginalComponent ) => {
|
|||
}
|
||||
|
||||
render() {
|
||||
const ComponentId = this.generateUniqueID();
|
||||
const componentId = this.generateUniqueID();
|
||||
|
||||
return <OriginalComponent
|
||||
{ ...this.props }
|
||||
ComponentId={ ComponentId }
|
||||
componentId={ componentId }
|
||||
/>;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue