MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / toPersistedChartPayload

Function toPersistedChartPayload

src/stores/aiChatChartBlocks.ts:133–141  ·  view source on GitHub ↗
(chart: ChartPayload)

Source from the content-addressed store, hash-verified

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

Callers 2

toChartContentBlocksFunction · 0.70
chartSignatureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected