diff --git a/judo-ui-react/src/main/java/hu/blackbelt/judo/ui/generator/react/UiPageContainerHelper.java b/judo-ui-react/src/main/java/hu/blackbelt/judo/ui/generator/react/UiPageContainerHelper.java index ccd0a5ad..425b75ac 100644 --- a/judo-ui-react/src/main/java/hu/blackbelt/judo/ui/generator/react/UiPageContainerHelper.java +++ b/judo-ui-react/src/main/java/hu/blackbelt/judo/ui/generator/react/UiPageContainerHelper.java @@ -225,13 +225,17 @@ public static MaskEntry getMaskForTable(Table table, PageDefinition pageDefiniti } } - for (Button button: table.getTableActionButtonGroup().getButtons()) { - if (button.getActionDefinition().getIsBulkCallOperationAction()) { - if (button.getHiddenBy() != null) { - mask.addPrimitives(button.getHiddenBy().getName()); - } - if (button.getEnabledBy() != null) { - mask.addPrimitives(button.getEnabledBy().getName()); + if (table.isIsEager()) { + // only add bulk action hidden and enabled by mask attributes for eager tables + // because such attributes can only come from the owner + for (Button button : table.getTableActionButtonGroup().getButtons()) { + if (button.getActionDefinition().getIsBulkCallOperationAction()) { + if (button.getHiddenBy() != null) { + mask.addPrimitives(button.getHiddenBy().getName()); + } + if (button.getEnabledBy() != null) { + mask.addPrimitives(button.getEnabledBy().getName()); + } } } }