Skip to content

Commit 80ab7c0

Browse files
authored
Merge pull request #1423 from algolia/develop
MAGE-765 Manual QA failed on new category
2 parents cdf44d9 + b3b50e3 commit 80ab7c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Model/Indexer/CategoryObserver.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ public function afterSave(
5454
CategoryResourceModel $result,
5555
CategoryModel $category
5656
) {
57+
if (!$this->configHelper->getApplicationID()
58+
|| !$this->configHelper->getAPIKey()
59+
|| !$this->configHelper->getSearchOnlyAPIKey()) {
60+
return $result;
61+
}
5762
$categoryResource->addCommitCallback(function () use ($category) {
5863
$collectionIds = [];
5964
// To reduce the indexing operation for products, only update if these values have changed

0 commit comments

Comments
 (0)