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

Commit

Permalink
Location dropdown missing in Order windows #753
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunkat committed May 24, 2017
1 parent 289164d commit 5a8981b
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/components/widget/Lookup/Lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class Lookup extends Component {
getAllDropdowns = () => {
const {
dispatch, windowType, dataId, select, tabId, rowId, entity,
subentity, subentityId, defaultValue, closeTableField
subentity, subentityId, closeTableField
} = this.props;

const {
Expand All @@ -142,15 +142,10 @@ class Lookup extends Component {
// call for more properties
if(propertiesCopy.length > 0){
const batchArray = propertiesCopy.filter((item, index) => {
const objectValue = getItemsByProperty(
defaultValue, 'field', item.field
)[0].value;
if(objectValue) {
return false;
} else {
propertiesArray.push(propertiesCopy[index]);
return true;
}

propertiesArray.push(propertiesCopy[index]);
return true;

}).map((item) => {
return dispatch(dropdownRequest(
windowType, item.field, dataId, tabId, rowId, entity,
Expand Down

0 comments on commit 5a8981b

Please sign in to comment.