Skip to content

Commit

Permalink
Merge field conditions.
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Dec 19, 2024
1 parent a89004e commit 0b5b84c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Imports/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,7 @@ function (string $attribute, mixed $value, Closure $fail) {
}
},
],
'if' => [
'destination.type' => 'entries',
],
// 'if' => $import ? static::buildFieldConditions($import) : null,
'if' => $import ? array_merge(static::buildFieldConditions($import), ['destination.type' => 'entries']) : null,
],
],
],
Expand Down

0 comments on commit 0b5b84c

Please sign in to comment.