Skip to content

Commit

Permalink
fix(picker): props keys is unexpected
Browse files Browse the repository at this point in the history
  • Loading branch information
betavs committed Sep 15, 2023
1 parent 520a5d1 commit 6a35c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/picker/picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export default class Picker extends SuperComponent {
},
keys(obj) {
this.setData({
labelAlias: obj.label || 'label',
valueAlias: obj.value || 'value',
labelAlias: obj?.label || 'label',
valueAlias: obj?.value || 'value',
});
},
};
Expand Down

0 comments on commit 6a35c4f

Please sign in to comment.