Skip to content

Commit

Permalink
Merge pull request #27 from brynnb/patch-2
Browse files Browse the repository at this point in the history
Fixing #23
  • Loading branch information
wilr authored Jun 24, 2020
2 parents 99f2886 + 560cba4 commit d20e92f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/AlgoliaQuerier.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function fetchResults($selectedIndex, $query, $searchParameters = [])
if ($results && isset($results['hits'])) {
foreach ($results['hits'] as $hit) {
$className = isset($hit['objectClassName']) ? $hit['objectClassName'] : null;
$id = isset($hit['objectSilverstripeUUID']) ? $hit['objectSilverstripeUUID'] : null;
$id = isset($hit['objectSilverstripeID']) ? $hit['objectSilverstripeID'] : null;

if (!$id || !$className) {
// ignore.
Expand Down

0 comments on commit d20e92f

Please sign in to comment.