diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-20 23:13:11 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-20 23:13:11 -0700 |
commit | b318cfd66ee2fa9918797fc0e0226a01983da746 (patch) | |
tree | 9224dc7290011285d6e8cb8829a12f5cb596575a /modern/src/DevicePage.js | |
parent | 9238895c99c30c442ce8dae41b61f898a79dd89b (diff) | |
download | trackermap-web-b318cfd66ee2fa9918797fc0e0226a01983da746.tar.gz trackermap-web-b318cfd66ee2fa9918797fc0e0226a01983da746.tar.bz2 trackermap-web-b318cfd66ee2fa9918797fc0e0226a01983da746.zip |
Implement users editing
Diffstat (limited to 'modern/src/DevicePage.js')
-rw-r--r-- | modern/src/DevicePage.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/DevicePage.js b/modern/src/DevicePage.js index 7c963b02..48c6afde 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; }; |