Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed Nov 25, 2019
2 parents ce75355 + fe32a1b commit c149f5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Stitcher/Page/Adapter/FilterAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function transform(array $pageConfiguration): array
foreach ($this->filters as $variableName => $filterConfiguration) {
$variable = $pageConfiguration['variables'][$variableName] ?? null;

$entries = $this->variableParser->parse($variable)['entries'] ?? [];
$entries = $this->variableParser->parse($variable) ?? [];

$filteredEntries = $this->filterEntries($filterConfiguration, $entries);

Expand All @@ -48,7 +48,7 @@ public function transform(array $pageConfiguration): array

unset($pageConfiguration['config']['filter']);

return $pageConfiguration;
return [$pageConfiguration];
}

public function isValidConfiguration($subject): bool
Expand Down

0 comments on commit c149f5c

Please sign in to comment.