diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-07-18 21:35:12 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-07-18 21:35:12 -0700 |
commit | 2b8e12b24c2c1aea9f9f36f98061f8200e153eda (patch) | |
tree | 3c9bc4c025c37a58e0abb77278be3a99e4b0fd3b | |
parent | 909b1adda19e88d7e05cb207b81e51e2022a5358 (diff) | |
download | trackermap-web-2b8e12b24c2c1aea9f9f36f98061f8200e153eda.tar.gz trackermap-web-2b8e12b24c2c1aea9f9f36f98061f8200e153eda.tar.bz2 trackermap-web-2b8e12b24c2c1aea9f9f36f98061f8200e153eda.zip |
Handle empty attributes
-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') { |