← All changes
|
classes/Visualizer/Gutenberg/src/Components/Import/ChartImport.js
+4
-2
3.10.0
→
3.11.10
View file →
| @@ -33,9 +33,11 @@ | ||
| 33 | 33 | let id; |
| 34 | 34 | |
| 35 | 35 | charts = charts.map( ( i, index ) => { |
| 36 | 36 | let label = i['chart_data']['visualizer-settings'].title ? i['chart_data']['visualizer-settings'].title : `#${i.id}`; |
| 37 | - | |
| 37 | + if ( 'object' === typeof label ) { | |
| 38 | + label = `#${i.id}`; | |
| 39 | + } | |
| 38 | 40 | if ( 0 === index ) { |
| 39 | 41 | id = i.id; |
| 40 | 42 | } |
| 41 | 43 | |
| @@ -97,9 +99,9 @@ | ||
| 97 | 99 | isPrimary |
| 98 | 100 | href={ visualizerLocalize.proTeaser } |
| 99 | 101 | target="_blank" |
| 100 | 102 | > |
| 101 | - { __( 'Buy Now' ) } | |
| 103 | + { __( 'Upgrade Now' ) } | |
| 102 | 104 | </Button> |
| 103 | 105 | |
| 104 | 106 | </PanelBody> |
| 105 | 107 | ); |