aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-09-27 23:34:57 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-09-27 23:34:57 -0700
commit2cda355e9d651e778794577c08fd0837f06e7b51 (patch)
tree3c5c3d272384ebff6daff510b43aa6068273afff /modern/src/settings
parentdfd5bd3db9fb2aed7d60979b424b7deea1629b42 (diff)
downloadtrackermap-web-2cda355e9d651e778794577c08fd0837f06e7b51.tar.gz
trackermap-web-2cda355e9d651e778794577c08fd0837f06e7b51.tar.bz2
trackermap-web-2cda355e9d651e778794577c08fd0837f06e7b51.zip
Fix alarm field issue
Diffstat (limited to 'modern/src/settings')
-rw-r--r--modern/src/settings/NotificationPage.js2
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>