aboutsummaryrefslogtreecommitdiff
path: root/modern/src/DevicePage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-09-20 23:13:11 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-09-20 23:13:11 -0700
commitb318cfd66ee2fa9918797fc0e0226a01983da746 (patch)
tree9224dc7290011285d6e8cb8829a12f5cb596575a /modern/src/DevicePage.js
parent9238895c99c30c442ce8dae41b61f898a79dd89b (diff)
downloadetbsa-traccar-web-b318cfd66ee2fa9918797fc0e0226a01983da746.tar.gz
etbsa-traccar-web-b318cfd66ee2fa9918797fc0e0226a01983da746.tar.bz2
etbsa-traccar-web-b318cfd66ee2fa9918797fc0e0226a01983da746.zip
Implement users 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 7c963b0..48c6afd 100644
--- a/modern/src/DevicePage.js
+++ b/modern/src/DevicePage.js
@@ -12,8 +12,8 @@ const DevicePage = () => {
const getItem = () => {
const updatedItem = item;
- updatedItem.name = name;
- updatedItem.uniqueId = uniqueId;
+ updatedItem.name = name || item.name;
+ updatedItem.uniqueId = uniqueId || item.uniqueId;
return updatedItem;
};