Skip to content

Commit

Permalink
Refactor component filters to "has..." helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarN0va committed May 16, 2024
1 parent e888f41 commit 6a3e139
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ private fun generateHtmlFiles(context: GeneratorContext, branchDir: File) {

it.containers
.filter { container ->
context.workspace.views.componentViews.any { containerView -> containerView.container == container } or
context.workspace.views.imageViews.any { imageView -> imageView.elementId in container.id } }
context.workspace.hasComponentDiagrams(container) or
context.workspace.hasImageViews(container.id) }
.forEach { container ->
add { writeHtmlFile(branchDir, SoftwareSystemContainerComponentsPageViewModel(context, container)) } }

Expand Down

0 comments on commit 6a3e139

Please sign in to comment.