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

Commit

Permalink
Browse files Browse the repository at this point in the history
hotfix #1433
  • Loading branch information
wiadev committed Dec 14, 2017
1 parent de3b627 commit 0b42ec5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/widget/Lookup/Lookup.js
Expand Up @@ -239,8 +239,7 @@ class Lookup extends Component {
"field",
item.field
)[0];

if (itemByProperty.widgetType === "Lookup") {
if (item.source === "lookup" || item.widgetType === "Lookup") {
return (
<RawLookup
key={index}
Expand Down Expand Up @@ -285,7 +284,7 @@ class Lookup extends Component {
}}
/>
);
} else if (itemByProperty.widgetType === "List") {
} else if (item.source === "list") {
const isFirstProperty = index === 0;
const isCurrentProperty =
item.field === property && !autofocusDisabled;
Expand Down

0 comments on commit 0b42ec5

Please sign in to comment.