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

See this browse screen.

This code:

@Subscribe("newEntitiesTable")
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?

Hi,

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

Regards,
Gleb