diff options
author | Desmond Kyeremeh <elDekyfin@gmail.com> | 2021-07-20 16:02:48 +0000 |
---|---|---|
committer | Desmond Kyeremeh <elDekyfin@gmail.com> | 2021-07-20 16:02:48 +0000 |
commit | fbf1be890ad30cd3a294c969fed3efe61ad59974 (patch) | |
tree | b6b014e98b6f79bd3d9b05aac4a1da355a11804b /modern/src/attributes/EditAttributesView.js | |
parent | 4a6ed2462ed5ed2960fc8245ac3c5bae967e685b (diff) | |
parent | 16d579d1628bd8aa4a8d1f262ed70face50af907 (diff) | |
download | trackermap-web-fbf1be890ad30cd3a294c969fed3efe61ad59974.tar.gz trackermap-web-fbf1be890ad30cd3a294c969fed3efe61ad59974.tar.bz2 trackermap-web-fbf1be890ad30cd3a294c969fed3efe61ad59974.zip |
Merge remote-tracking branch 'origin/master' into device_list
Diffstat (limited to 'modern/src/attributes/EditAttributesView.js')
-rw-r--r-- | modern/src/attributes/EditAttributesView.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/attributes/EditAttributesView.js b/modern/src/attributes/EditAttributesView.js index e38c02ae..13ea9bd4 100644 --- a/modern/src/attributes/EditAttributesView.js +++ b/modern/src/attributes/EditAttributesView.js @@ -52,7 +52,7 @@ const EditAttributesView = ({ attributes, setAttributes, definitions }) => { const convertToList = (attributes) => { const booleanList = []; const otherList = []; - Object.keys(attributes).forEach((key) => { + Object.keys(attributes || []).forEach((key) => { const value = attributes[key]; const type = getAttributeType(value); if (type === 'boolean') { |