Commit a30618752ff7129523d0ec42aca0cf97c1dfeaae
1 parent
12d650c4
Minor code refactor in EventTableDirective
Showing
1 changed file
with
2 additions
and
1 deletions
... | ... | @@ -100,8 +100,9 @@ export default function EventTableDirective($compile, $templateCache, $rootScope |
100 | 100 | fetchMoreItems_: function () { |
101 | 101 | if (scope.events.hasNext && !scope.events.pending) { |
102 | 102 | if (scope.entityType && scope.entityId && scope.eventType && scope.tenantId) { |
103 | + var promise = ''; | |
103 | 104 | if (scope.eventType !== types.eventType.edgeEvent.value) { |
104 | - var promise = eventService.getEvents(scope.entityType, scope.entityId, | |
105 | + promise = eventService.getEvents(scope.entityType, scope.entityId, | |
105 | 106 | scope.eventType, scope.tenantId, scope.events.nextPageLink); |
106 | 107 | } else { |
107 | 108 | promise = edgeService.getEdgeEvents(scope.entityId, scope.events.nextPageLink); | ... | ... |