← All changes
|
classes/Visualizer/Gutenberg/src/Components/Sidebar/TableSettings.js
+1
-2
3.10.0
→
3.4.2
View file →
| @@ -24,9 +24,8 @@ | ||
| 24 | 24 | |
| 25 | 25 | const settings = this.props.chart['visualizer-settings']; |
| 26 | 26 | |
| 27 | 27 | const type = this.props.chart['visualizer-chart-type']; |
| 28 | - const library = this.props.chart['visualizer-chart-library']; | |
| 29 | 28 | |
| 30 | 29 | return ( |
| 31 | 30 | <PanelBody |
| 32 | 31 | title={ __( 'Table Settings' ) } |
| @@ -33,9 +32,9 @@ | ||
| 33 | 32 | initialOpen={ false } |
| 34 | 33 | className="visualizer-advanced-panel" |
| 35 | 34 | > |
| 36 | 35 | |
| 37 | - { ( 'DataTable' === library ) ? ( | |
| 36 | + { ( 'dataTable' === type ) ? ( | |
| 38 | 37 | <Fragment> |
| 39 | 38 | <CheckboxControl |
| 40 | 39 | label={ __( 'Enable Pagination' ) } |
| 41 | 40 | help={ __( 'To enable paging through the data.' ) } |