Skip to content

Commit

Permalink
fix(limel-picker): set chip-set id from listItem id if existing
Browse files Browse the repository at this point in the history
  • Loading branch information
BregenzerK authored and adrianschmidt committed Sep 10, 2019
1 parent 1e5800b commit 1f554a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/picker/picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,10 @@ export class Picker {

const listItem: ListItem = value as ListItem;

return [this.createChip(listItem, 0)];
return [this.createChip(listItem, listItem.id || 0)];
}

private createChip(listItem: ListItem, id: number): Chip {
// TODO: Add icon when supported by list component
return {
id: `${id}`,
text: listItem.text,
Expand Down

0 comments on commit 1f554a9

Please sign in to comment.