Record blocks draw the charts grid only when there are charts

This commit is contained in:
2026-12-03 17:04:01 -06:00
parent f3d7b20a8b
commit bbd31f1307
+2 -2
View File
@@ -57,9 +57,9 @@ import { Section } from './tea-sections';
<h3>{{ chart.title }}</h3>
<app-plot [figure]="chart.figure" [height]="chart.height ?? 340" />
}
@if (block.charts; as charts) {
@if (block.charts?.length) {
<div class="charts">
@for (chart of charts; track $index) {
@for (chart of block.charts; track $index) {
<div>
<h3>{{ chart.title }}</h3>
<app-plot [figure]="chart.figure" [height]="chart.height ?? 340" />