aboutsummaryrefslogtreecommitdiff
path: root/modern/src/DevicePage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-09-27 19:49:47 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-09-27 19:49:47 -0700
commit9bfda9e131ddda3076b4094a94795db41072a39c (patch)
treed6b4e12f2d62431cc0d320b5396e578944af78f4 /modern/src/DevicePage.js
parentbbc54a464a8a3cf41904c5335fb1845ff8af1887 (diff)
downloadtrackermap-web-9bfda9e131ddda3076b4094a94795db41072a39c.tar.gz
trackermap-web-9bfda9e131ddda3076b4094a94795db41072a39c.tar.bz2
trackermap-web-9bfda9e131ddda3076b4094a94795db41072a39c.zip
Implement attributes editing
Diffstat (limited to 'modern/src/DevicePage.js')
-rw-r--r--modern/src/DevicePage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/DevicePage.js b/modern/src/DevicePage.js
index da41e37a..f2985408 100644
--- a/modern/src/DevicePage.js
+++ b/modern/src/DevicePage.js
@@ -91,7 +91,7 @@ const DevicePage = () => {
onChange={event => setItem({...item, groupId: Number(event.target.value)})}>
<option value={0}></option>
{groups.map(group => (
- <option value={group.id}>{group.name}</option>
+ <option key={group.id} value={group.id}>{group.name}</option>
))}
</Select>
</FormControl>
@@ -121,7 +121,7 @@ const DevicePage = () => {
defaultValue={item.category}
onChange={event => setItem({...item, category: event.target.value})}>
{deviceCategories.map(category => (
- <option value={category}>{t(`category${category.replace(/^\w/, c => c.toUpperCase())}`)}</option>
+ <option key={category} value={category}>{t(`category${category.replace(/^\w/, c => c.toUpperCase())}`)}</option>
))}
</Select>
</FormControl>