We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 492fe1e commit e7c2b8eCopy full SHA for e7c2b8e
Model/Observer/SaveSettings.php
@@ -67,7 +67,7 @@ public function execute(Observer $observer)
67
foreach ($storeIds as $storeId) {
68
$indexName = $this->helper->getIndexName($this->productHelper->getIndexNameSuffix(), $storeId);
69
$currentSettings = $this->algoliaHelper->getSettings($indexName);
70
- if (array_key_exists('replicas', $currentSettings)) {
+ if (is_array($currentSettings) && array_key_exists('replicas', $currentSettings)) {
71
$this->algoliaHelper->setSettings($indexName, ['replicas' => []]);
72
$setReplicasTaskId = $this->algoliaHelper->getLastTaskId();
73
$this->algoliaHelper->waitLastTask($indexName, $setReplicasTaskId);
0 commit comments