Skip to content

Commit

Permalink
switch to async entity factory if lazy loading is true
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham1g5 committed Dec 4, 2023
1 parent bbc3d72 commit cfd5a50
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class EntityScreenHelper {
public static List<Entity<TreeReference>> initEntities(EvaluationContext context, Detail detail,
EntityScreenContext entityScreenContext, TreeReference[] entitiesRefs) {
NodeEntityFactory nodeEntityFactory;
if (detail.useAsyncStrategy()) {
if (detail.isLazyLoading()) {
nodeEntityFactory = new AsyncNodeEntityFactory(detail, context, null);
} else {
nodeEntityFactory = new NodeEntityFactory(detail, context);
Expand Down

0 comments on commit cfd5a50

Please sign in to comment.