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

Commit

Permalink
#2473 fix some data type issue after rebasing with master
Browse files Browse the repository at this point in the history
  • Loading branch information
siemiatj committed Mar 23, 2020
1 parent 359f7af commit df8b326
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/widget/Lookup/RawLookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ export class RawLookup extends PureComponent {
} = this.props;

// -- shape placeholder with the clearValueText in case this exists
const placeholder = mainProperty[0].clearValueText
? mainProperty[0].clearValueText
const placeholder = mainProperty.clearValueText
? mainProperty.clearValueText
: this.props.placeholder;
const inputValue = this.inputSearch.value;
let typeaheadRequest;
Expand Down Expand Up @@ -407,7 +407,7 @@ export class RawLookup extends PureComponent {
if (!filterWidget && !!defaultValue && this.inputSearch) {
const init = [defaultValue];
const inputValue = defaultValue.caption;
const clearValueText = this.props.mainProperty[0].clearValueText;
const clearValueText = this.props.mainProperty.clearValueText;
const placeholder = clearValueText
? clearValueText
: this.props.placeholder;
Expand Down

0 comments on commit df8b326

Please sign in to comment.