[GH #7236] [8.0.0] migration getSourceData on tables with nested rows returns extraneous row

Using the rock album nested row example if I modify the data to a single null entry.

sourceDataObjectNull = [
{
category: null,
artist: null,
title: null,
label: null,
__children: [
{
title: null,
artist: null,
label: null
}]
}]

When logging the getSourceData from 7.4.2

[{“category”:null,“artist”:null,“title”:null,“label”:null,"__children":[{“title”:null,“artist”:null,“label”:null}]}]

When logging the getSourceData from 8.0.0 (why is there now an extra row?)

[{“category”:null,“artist”:null,“title”:null,“label”:null,"__children":[{“title”:null,“artist”:null,“label”:null}]},{“title”:null,“artist”:null,“label”:null}]

Thank you for sharing the scenario @davbro80129

In v8.0.0 we made some changes for the source data


src: Changelog - JavaScript Data Grid | Handsontable

But know the children data seems to be duplicated. So I’ve reported the issue on our Github board [8.0.0] getSourceData method returns a different structure for Nested Rows · Issue #7236 · handsontable/handsontable · GitHub

I have asked our CTO to discuss the same with the team. I will update you as soon as I get any information on that subject.

Thanks for looking into the problem and reporting the issue.