Use TreeTable to create now entity, the parent is null

When I select an entity in tree table and click create button, the new entity’s parent is null.

I used cuba 6.8.8 .

In CreateAction line 223 is “target instanceof Tree”. But TreeTable dosn’t implement from Tree interface.

I want to fix it and send pr to github. I compared Tree and TreeTable, TreeTable’s methods are almost a sub set of Tree’s, maybe the best fix method is to merge these two interfaces, the fastest fix method is to add a code block like line 223 in CreateAction.

Any suggestion?

Hello, @peace0phmind

The second option will be more suitable.