diff options
author | Anton Tananaev <anton@traccar.org> | 2023-11-19 07:16:56 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-11-19 07:17:22 -0800 |
commit | 1b21fad46cd8c857a8c542ee2cbfbc3ee4951dcd (patch) | |
tree | 2714c7d489d81b40fe82ee987f42e63494fe5787 /modern/src/settings/PreferencesPage.jsx | |
parent | 00eb4948cac4035d34fb118f788b08ca62bc173b (diff) | |
download | trackermap-web-1b21fad46cd8c857a8c542ee2cbfbc3ee4951dcd.tar.gz trackermap-web-1b21fad46cd8c857a8c542ee2cbfbc3ee4951dcd.tar.bz2 trackermap-web-1b21fad46cd8c857a8c542ee2cbfbc3ee4951dcd.zip |
Show driver name
Diffstat (limited to 'modern/src/settings/PreferencesPage.jsx')
-rw-r--r-- | modern/src/settings/PreferencesPage.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/settings/PreferencesPage.jsx b/modern/src/settings/PreferencesPage.jsx index e0673688..bd96b140 100644 --- a/modern/src/settings/PreferencesPage.jsx +++ b/modern/src/settings/PreferencesPage.jsx @@ -173,7 +173,7 @@ const PreferencesPage = () => { multiple freeSolo options={Object.keys(positionAttributes)} - getOptionLabel={(option) => (positionAttributes.hasOwnProperty(option) ? positionAttributes[option].name : option)} + getOptionLabel={(option) => (positionAttributes[option]?.name || option)} value={attributes.positionItems?.split(',') || ['speed', 'address', 'totalDistance', 'course']} onChange={(_, option) => { setAttributes({ ...attributes, positionItems: option.join(',') }); |