check for no employee

master
Alexander Wong 6 years ago
parent 7d284010fb
commit 8dede994b4
No known key found for this signature in database
GPG Key ID: EBFE6371FA6A79DC
  1. 2
      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 || ""));

Loading…
Cancel
Save