import { select } from 'd3-selection'

export function ensureData(d, i) {
  if (!d) select(this).datum([])
}

import { select } from 'd3-selection'

export function ensureData(d, i) {
  let rows = d || []
  rows.rows = null
  select(this).datum(rows)
}

Fix stale data: Encapsulate initial pre-processed row cleanup.
Fix stale data: Encapsulate initial pre-processed row cleanup.
