Skip to content

Commit 996812b

Browse files
authored
Fix Warning: Warning: Undefined array key "columns" (#633)
Fix Warning: Undefined array key "columnConfig"
1 parent 0f31e82 commit 996812b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Configuration.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ public function getQueryColumnConfig($entityName)
423423
*/
424424
public function getMutationColumnConfig($entityName)
425425
{
426-
return $this->getMutationEntityConfig($entityName)['columnConfig'];
426+
return $this->getMutationEntityConfig($entityName)['columnConfig'] ?? [];
427427
}
428428

429429
/**

src/GraphQL/Mutation/MutationType.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ public function generateInputFieldsAndProcessors(&$inputFields, &$processors, $c
779779
/** @var Configuration $configurationItem */
780780
$configurationItem = $context['configuration'];
781781

782-
$columns = $configurationItem->getMutationColumnConfig($entity)['columns'];
782+
$columns = $configurationItem->getMutationColumnConfig($entity)['columns'] ?? [];
783783

784784
if ($columns) {
785785
$fieldHelper = $this->getGraphQlService()->getObjectFieldHelper();

0 commit comments

Comments
 (0)