DataGrid EditorCloseEvent.getItemId() returns the entity that was edited, not the ID

See this browse screen.

This code:

private void onEditorClose(DataGrid.EditorCloseEvent event ) {
    if (event.getItemId() instanceof Entity) {
        throw new RuntimeException("Entities are not IDs.");

Throws a RuntimeException as event.getItemId() returns the entity that was edited instead of its UUID. Cuba bug?


Thank you for reporting the problem, I’ve created a GitHub issue.