Skip to content

Commit

Permalink
support empty collapsible sections
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Hall <[email protected]>
  • Loading branch information
imjasonh committed Dec 21, 2023
1 parent bf6e43a commit 2e48b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboard/sections/collapsible/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ output "section" {
value = concat([{
yPos = local.start_row
xPos = 0,
height = max([for s in var.tiles : s.yPos + s.height - local.start_row]...),
height = length(var.tiles) == 0 ? 0 : max([for s in var.tiles : s.yPos + s.height - local.start_row]...),
width = module.width.size,
widget = {
title = var.title
Expand Down

0 comments on commit 2e48b56

Please sign in to comment.