diff --git a/src/components/User/Client/UpdatePriceForm.jsx b/src/components/User/Client/UpdatePriceForm.jsx index a3994b6..38ccbbc 100644 --- a/src/components/User/Client/UpdatePriceForm.jsx +++ b/src/components/User/Client/UpdatePriceForm.jsx @@ -31,7 +31,7 @@ class UpdatePriceForm extends Component { // Get referenced price const priceUUID = this.props.match.params.priceUUID; const price = - (employee.prices || []).filter( + ((employee || {}).prices || []).filter( price => price.uuid === priceUUID && !price.deleted )[0] || null; this.props.dispatch(setFormPriceAmount((price || {}).amount || ""));