[catalog] Fix js exception when a classification has no attributes
@@ -287,6 +287,7 @@ class NavProperties {
if (navigatorMeta.classifications) {
navigatorMeta.classifications.forEach(classification => {
+ if (classification.attributes) {
Object.keys(classification.attributes).forEach(attributeKey => {
const property = new NavProperty(
attributeKey,
@@ -295,6 +296,7 @@ class NavProperties {
property.setTitle(classification.typeName);
newProps.push(property);
});
+ }
});
} else if (navigatorMeta.properties) {
Object.keys(navigatorMeta.properties).forEach(key => {
