Skip to content

Commit 5f002dc

Browse files
authored
Skip entities with no portfolio type (#98)
1 parent eb22d8f commit 5f002dc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

R/create_interactive_report.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,11 @@ create_interactive_report <-
469469
for (report_type in names(real_estate_files)) {
470470
xx <- real_estate_files[[report_type]]
471471
for (yy in xx) {
472-
portfolio_type <- yy[["portfolio_type"]]
472+
if (is.null(yy[["portfolio_type"]])) {
473+
next
474+
} else {
475+
portfolio_type <- yy[["portfolio_type"]]
476+
}
473477
portfolio_id <- dplyr::coalesce(yy[["portfolio_id"]], NA_integer_)
474478
for (report_language in c("de", "fr")) {
475479
this_report <- data.frame(

0 commit comments

Comments
 (0)