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

Commit

Permalink
Merge pull request #1074 from metasfresh/dev-1073
Browse files Browse the repository at this point in the history
Bug in Advanced edit of Purchase order #1073
  • Loading branch information
cadavre authored Jul 25, 2017
2 parents 7575755 + c0fcf62 commit fb1605c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/widget/Lookup/Lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,11 @@ class Lookup extends Component {

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

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

const objectValue = itemByProperty && itemByProperty.value;

return <div
className={
Expand Down

0 comments on commit fb1605c

Please sign in to comment.