Skip to content

Commit

Permalink
fixing to render book
Browse files Browse the repository at this point in the history
  • Loading branch information
l-gorman committed Nov 4, 2022
1 parent 52dd406 commit f0df5f7
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions R/MetaData.R
Original file line number Diff line number Diff line change
Expand Up @@ -483,16 +483,22 @@ find_d3_dependencies_network <- function(
}


if (length(indicator$indicators_required)==1){
if (indicator$indicators_required==""){
indicator$indicators_required <- list()
}

if (length(indicator$indicators_required)>0){
children <- lapply(indicator$indicators_required, function(indicator_name){
find_d3_dependencies_network(
indicator_name=indicator_name,
list_of_indicators=list_of_indicators,
d3_list=d3_list)
})
}

if (length(indicator$indicators_required)>0 ){
children <- lapply(indicator$indicators_required, function(indicator_name){
find_d3_dependencies_network(
indicator_name=indicator_name,
list_of_indicators=list_of_indicators,
d3_list=d3_list)
})

d3_list$children <- append(d3_list[["children"]],children)
d3_list$children <- append(d3_list[["children"]],children)



Expand Down

0 comments on commit f0df5f7

Please sign in to comment.