From 3318f0e21d89a10a14c88fe991e79fb160976016 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Thu, 23 Jun 2022 15:51:10 +0100 Subject: [PATCH] only copy keys that are not blank --- app/src/frontend/building/data-container.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/frontend/building/data-container.tsx b/app/src/frontend/building/data-container.tsx index ce1db51b..f0c1d674 100644 --- a/app/src/frontend/building/data-container.tsx +++ b/app/src/frontend/building/data-container.tsx @@ -84,7 +84,7 @@ const withCopyEdit: (wc: React.ComponentType) => DataContaine const categoryKeys = {}; for (let key in dataFields) { - if (dataFields[key].category == props.cat){ + if (dataFields[key].category == props.cat && props.building[key] != null){ categoryKeys[key] = true; } }