aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
Diffstat (limited to 'modern')
-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>