summaryrefslogtreecommitdiff
path: root/openstack_dashboard/static/app/core/images/details/overview.controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'openstack_dashboard/static/app/core/images/details/overview.controller.js')
-rw-r--r--openstack_dashboard/static/app/core/images/details/overview.controller.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/openstack_dashboard/static/app/core/images/details/overview.controller.js b/openstack_dashboard/static/app/core/images/details/overview.controller.js
index 73691f033..810a8a171 100644
--- a/openstack_dashboard/static/app/core/images/details/overview.controller.js
+++ b/openstack_dashboard/static/app/core/images/details/overview.controller.js
@@ -44,7 +44,11 @@
ctrl.image = image.data;
ctrl.image.properties = Object.keys(ctrl.image.properties).map(function mapProps(prop) {
- return {name: prop, value: ctrl.image.properties[prop]};
+ var propValue = ctrl.image.properties[prop];
+ if ($.isArray(propValue) && propValue.length === 0) {
+ propValue = '';
+ }
+ return {name: prop, value: propValue};
});
userSession.get().then(setProject);