Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Bug in Advanced edit of Purchase order #1073
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunkat committed Jul 25, 2017
1 parent 425f477 commit b9bc5af
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/widget/Lookup/Lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,13 @@ class Lookup extends Component {

} else if (item.source === 'list') {

const objectValue = getItemsByProperty(
const itemByProperty = getItemsByProperty(
defaultValue, 'field', item.field
)[0].value;
)[0] && getItemsByProperty(
defaultValue, 'field', item.field
)[0];

const objectValue = itemByProperty && itemByProperty.value;

return <div
className={
Expand Down

0 comments on commit b9bc5af

Please sign in to comment.