From 024d29ca2c261823beff5fefb12d7b07a9fcbcad Mon Sep 17 00:00:00 2001 From: Tom Russell Date: Thu, 25 Oct 2018 14:46:07 +0100 Subject: [PATCH] Ensure iterators have keys (uprns in building view) --- app/src/frontend/building-view.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/frontend/building-view.js b/app/src/frontend/building-view.js index da989616..86073dc9 100644 --- a/app/src/frontend/building-view.js +++ b/app/src/frontend/building-view.js @@ -34,6 +34,7 @@ const BuildingView = (props) => { section_props.fields.map(field_props => { return (field_props.slug === 'uprns')? @@ -122,7 +123,7 @@ const UPRNsDataEntry = (props) => { { no_parent.length? no_parent.map(uprn => ( -
  • {uprn.uprn}
  • +
  • {uprn.uprn}
  • )) : '\u00A0' }
    @@ -132,7 +133,7 @@ const UPRNsDataEntry = (props) => { Children { with_parent.map(uprn => ( -
  • {uprn.uprn} (child of {uprn.parent_uprn})
  • +
  • {uprn.uprn} (child of {uprn.parent_uprn})
  • )) }