fix prev commit
This commit is contained in:
parent
06948084b1
commit
ba55dc7b37
@ -881,9 +881,24 @@ export default [
|
|||||||
)({
|
)({
|
||||||
insuranceCompany: {
|
insuranceCompany: {
|
||||||
filter: leasingWithoutKasko
|
filter: leasingWithoutKasko
|
||||||
? pipe(
|
? options =>
|
||||||
insuranceOsagoDefaultFilter,
|
options.filter(
|
||||||
options => options.evo_evokasko_access === true,
|
pipe(
|
||||||
|
x => {
|
||||||
|
if (
|
||||||
|
x.evo_type_ins_policy &&
|
||||||
|
x.evo_type_ins_policy.includes(100000001)
|
||||||
|
) {
|
||||||
|
return x;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
x => {
|
||||||
|
if (x?.evo_evokasko_access === true) {
|
||||||
|
return x;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
),
|
||||||
)
|
)
|
||||||
: insuranceOsagoDefaultFilter,
|
: insuranceOsagoDefaultFilter,
|
||||||
value: isTrailer ? null : undefined,
|
value: isTrailer ? null : undefined,
|
||||||
|
|||||||
Reference in New Issue
Block a user