Skip to content

Commit

Permalink
Fix build break.
Browse files Browse the repository at this point in the history
  • Loading branch information
CXuesong committed Dec 22, 2019
1 parent b75d451 commit 2ad7ea1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/EntitySearchBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ export const EntitySearchBox: React.FC<IEntitySearchBoxProps> = React.memo((prop
const suggestions = React.useMemo(() => searchEntities(searchExpr), [searchExpr]);
return (
<Downshift
itemToString={(item: IEntityLookupResultItem) => item && item.qName}
onChange={(value?: string) => {
itemToString={(item) => item && item.qName || ""}
onChange={(value) => {
if (value) {
const label = dataService.getLabelFor(value);
setSearchExpr(label && label.label || value);
Expand Down

0 comments on commit 2ad7ea1

Please sign in to comment.