only copy keys that are not blank

This commit is contained in:
Ed Chalstrey 2022-06-23 15:51:10 +01:00
parent 52a5a22967
commit 3318f0e21d

View File

@ -84,7 +84,7 @@ const withCopyEdit: (wc: React.ComponentType<CategoryViewProps>) => 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;
}
}