Skip to content

Commit

Permalink
fix erros
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Sep 11, 2024
1 parent 64394c5 commit 86fa591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Filament/Imports/PointImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public function saveRecord(): void
$this->checkDefaultFields();

parent::saveRecord(); // TODO: Change the autogenerated stub
if ($this->options['import_materials']) {
if (!empty($this->options['import_materials'])) {
collect($materials)->each(function ($material) {
$this->record->materials()->attach(Material::search($material)->first());
});
Expand Down

0 comments on commit 86fa591

Please sign in to comment.