Skip to content

Commit b492a3e

Browse files
Fix error when importing structured collection without mapping parents (#58)
1 parent 959aa11 commit b492a3e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Jobs/UpdateCollectionTreeJob.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ public function handle(): void
3030
return;
3131
}
3232

33+
if (! Cache::has("importer.{$this->import->id}.parents")) {
34+
return;
35+
}
36+
3337
$parents = (new SortByParent)->sort(Cache::get("importer.{$this->import->id}.parents"));
3438

3539
collect($parents)->each(function (array $item) use ($tree) {

0 commit comments

Comments
 (0)