diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-27 23:34:57 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-27 23:34:57 -0700 |
commit | 2cda355e9d651e778794577c08fd0837f06e7b51 (patch) | |
tree | 3c5c3d272384ebff6daff510b43aa6068273afff /modern/src/settings/NotificationPage.js | |
parent | dfd5bd3db9fb2aed7d60979b424b7deea1629b42 (diff) | |
download | trackermap-web-2cda355e9d651e778794577c08fd0837f06e7b51.tar.gz trackermap-web-2cda355e9d651e778794577c08fd0837f06e7b51.tar.bz2 trackermap-web-2cda355e9d651e778794577c08fd0837f06e7b51.zip |
Fix alarm field issue
Diffstat (limited to 'modern/src/settings/NotificationPage.js')
-rw-r--r-- | modern/src/settings/NotificationPage.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/settings/NotificationPage.js b/modern/src/settings/NotificationPage.js index f09f3fe2..3e47650b 100644 --- a/modern/src/settings/NotificationPage.js +++ b/modern/src/settings/NotificationPage.js @@ -82,7 +82,7 @@ const NotificationPage = () => { <InputLabel>{t('sharedAlarms')}</InputLabel> <Select multiple - defaultValue={item.attributes.alarms ? item.attributes.alarms.split(/[, ]+/) : []} + defaultValue={item.attributes && item.attributes.alarms ? item.attributes.alarms.split(/[, ]+/) : []} onChange={e => setItem({...item, attributes: {...item.attributes, alarms: e.target.value.join()}})}> {alarms.map(it => ( <MenuItem key={it.key} value={it.key}>{it.name}</MenuItem> |