Clean table data before using it as additional data context to better reflect usable structure
This commit is contained in:
parent
0b8199be74
commit
afbec934f3
|
@ -60,8 +60,10 @@
|
||||||
|
|
||||||
// Provide additional data context for live binding eval
|
// Provide additional data context for live binding eval
|
||||||
export const getAdditionalDataContext = () => {
|
export const getAdditionalDataContext = () => {
|
||||||
const rows = get(grid?.getContext()?.rows)
|
const gridContext = grid?.getContext()
|
||||||
const goldenRow = generateGoldenSample(rows)
|
const rows = get(gridContext?.rows) || []
|
||||||
|
const cleaned = rows.map(gridContext?.rows.actions.cleanRow || (x => x))
|
||||||
|
const goldenRow = generateGoldenSample(cleaned)
|
||||||
const id = get(component).id
|
const id = get(component).id
|
||||||
return {
|
return {
|
||||||
// Not sure what this one is for...
|
// Not sure what this one is for...
|
||||||
|
|
Loading…
Reference in New Issue