aboutsummaryrefslogtreecommitdiff
path: root/modern/src/attributes
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/attributes
parent604eabcd97c6e7ddb42316a5a1fb0abc24e8dc7f (diff)
downloadetbsa-traccar-web-a4c2f0477dcda2662a3fd268f77a7549dead6e67.tar.gz
etbsa-traccar-web-a4c2f0477dcda2662a3fd268f77a7549dead6e67.tar.bz2
etbsa-traccar-web-a4c2f0477dcda2662a3fd268f77a7549dead6e67.zip
Fix default and empty values (fix #802)
Diffstat (limited to 'modern/src/attributes')
-rw-r--r--modern/src/attributes/EditAttributesView.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/attributes/EditAttributesView.js b/modern/src/attributes/EditAttributesView.js
index 9491acc..619d857 100644
--- a/modern/src/attributes/EditAttributesView.js
+++ b/modern/src/attributes/EditAttributesView.js
@@ -106,7 +106,7 @@ const EditAttributesView = ({ attributes, setAttributes, definitions }) => {
<InputLabel>{getAttributeName(key)}</InputLabel>
<FilledInput
type={type === 'number' ? 'number' : 'text'}
- defaultValue={value}
+ value={value || ''}
onChange={e => updateAttribute(key, e.target.value)}
endAdornment={
<InputAdornment position="end">