diff --git a/app/src/frontend/building/data-components/planning-data-entry.tsx b/app/src/frontend/building/data-components/planning-data-entry.tsx index 8fd0edcf..33e8f18d 100644 --- a/app/src/frontend/building/data-components/planning-data-entry.tsx +++ b/app/src/frontend/building/data-components/planning-data-entry.tsx @@ -78,28 +78,36 @@ const PlanningDataOfficialDataEntry: React.FC + + + No live planning data available currently for this building polygon via the Planning London DataHub.
-
); } else { return ( + + + No live planning data for this date range, but this building has associated planning data now shown here.
-
); } } - return <>{data.map((item) => ( + return <> + + +
+ {/* TODO: data[0] is problematic here... Compute it from listed elements and show all distinct variants? Error if they are not distinct? Hardcode it? */} +
Planning application status is streamed using live data uploaded by local authorities to the {data[0]["data_source_link"] ? {data[0]["data_source"]} : data[0]["data_source"] }.
+ {data.map((item) => ( -
Planning application status is streamed using live data uploaded by local authorities to the {item["data_source_link"] ? {item["data_source"]} : item["data_source"] }.
-
Current planning application status for this site: Address of the location: {ShowIfAvailable(item["address"])}
Most recent update by data provider: {ShowIfAvailable(item["decision_date"])}

-