aboutsummaryrefslogtreecommitdiff
path: root/modern/src/admin/ServerPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-12-05 17:23:44 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-12-05 17:23:44 -0800
commita4c2f0477dcda2662a3fd268f77a7549dead6e67 (patch)
tree4782c3456ae181f783d24f9892eec4a2c7f509c2 /modern/src/admin/ServerPage.js
parent604eabcd97c6e7ddb42316a5a1fb0abc24e8dc7f (diff)
downloadtrackermap-web-a4c2f0477dcda2662a3fd268f77a7549dead6e67.tar.gz
trackermap-web-a4c2f0477dcda2662a3fd268f77a7549dead6e67.tar.bz2
trackermap-web-a4c2f0477dcda2662a3fd268f77a7549dead6e67.zip
Fix default and empty values (fix #802)
Diffstat (limited to 'modern/src/admin/ServerPage.js')
-rw-r--r--modern/src/admin/ServerPage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/admin/ServerPage.js b/modern/src/admin/ServerPage.js
index d8961040..43664e54 100644
--- a/modern/src/admin/ServerPage.js
+++ b/modern/src/admin/ServerPage.js
@@ -63,7 +63,7 @@ const ServerPage = () => {
<AccordionDetails className={classes.details}>
<TextField
margin="normal"
- defaultValue={item.announcement}
+ value={item.announcement || ''}
onChange={event => setItem({...item, announcement: event.target.value})}
label={t('serverAnnouncement')}
variant="filled" />