fixed default action

This commit is contained in:
anhefti 2023-03-09 11:40:18 +01:00
parent d35fbed73d
commit 2eff9ff962

View file

@ -213,6 +213,11 @@ public class EntityTable<ROW extends ModelIdAware> {
if (selection != null) {
this.pageService.executePageAction(
defaultAction.withEntityKey(selection));
} else {
final TableItem[] item = this.table.getSelection();
if (item != null && item.length > 0) {
this.pageService.executePageAction(defaultAction);
}
}
});
}