9 lines
214 B
JavaScript
9 lines
214 B
JavaScript
function getPickerViewLabel(item) {
|
|
if (typeof item === 'object' && typeof item.label === 'string') {
|
|
return item.label || '';
|
|
}
|
|
return item;
|
|
}
|
|
export default {
|
|
getPickerViewLabel: getPickerViewLabel
|
|
}; |