Skip to content
Snippets Groups Projects

Resolve #3503311 "Type error array keys argument "

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -415,7 +415,7 @@ class GraphQL extends DisplayPluginBase {
'#caption' => $this->t('GraphQL query %query', [
'%query' => $this->getGraphQlQueryName(),
]),
'#header' => array_keys(reset($rows)),
'#header' => array_keys($rows ? reset($rows) : []),
'#rows' => $rows,
];
}
Loading