We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91b2aab commit 80096ddCopy full SHA for 80096dd
classes/Visualizer/Module/Admin.php
@@ -904,7 +904,7 @@ public function renderLibraryPage() {
904
$data = self::get_chart_data( $chart, $type );
905
906
// Set default setting series when add manual chart data - Only during first creation.
907
- if ( in_array( $type, array( 'line' ), true ) ) {
+ if ( isset( $settings['series'] ) && ! empty( $series ) ) {
908
$count_series = count( $series ) - count( $settings['series'] );
909
if ( $count_series > 1 ) {
910
$clone_last_series = end( $settings['series'] );
0 commit comments