Skip to content

Commit abdb036

Browse files
Can’t edit chart while importing data from Google Spreadsheet
1 parent bce058a commit abdb036

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

classes/Visualizer/Render/Layout.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,10 @@ public static function _renderEditorTable( $args ) {
372372
?>
373373
</tr>
374374
<?php
375+
// for remote sources, the data exists inside 'data'.
376+
if ( array_key_exists( 'data', $data ) ) {
377+
$data = $data['data'];
378+
}
375379
foreach ( $data as $row ) {
376380
echo '<tr>';
377381
echo '<th>' . __( 'Value', 'visualizer' ) . '</th>';

0 commit comments

Comments
 (0)