(chart: ChartPayload)
| 131 | } |
| 132 | |
| 133 | export function toPersistedChartPayload(chart: ChartPayload): ChartPayload { |
| 134 | return { |
| 135 | ...chart, |
| 136 | dataset: { |
| 137 | ...chart.dataset, |
| 138 | rows: [], |
| 139 | }, |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | export function toChartContentBlocks(charts: ChartPayload[]): ChartContentBlock[] { |
| 144 | return charts.map((chart) => ({ type: 'chart', chart: toPersistedChartPayload(chart) })) |
no outgoing calls
no test coverage detected