Skip to content

Commit

Permalink
fix(picker): props keys is unexpected (#2358)
Browse files Browse the repository at this point in the history
  • Loading branch information
betavs authored Sep 15, 2023
1 parent e2ab77f commit 405c95f
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 405c95f

Please sign in to comment.