Handled Null Case

This commit is contained in:
devansh bawari 2021-02-25 18:37:40 +05:30
parent 0f6d3d3253
commit de0c76eaa1
1 changed files with 3 additions and 1 deletions

View File

@ -84,7 +84,9 @@ class ShopController extends Controller
return $this->velocityHelper->formatProduct($product);
}
}
}),
})->reject(function ($product) {
return is_null($product);
})->values(),
];
break;