Fix proposal list management

This commit is contained in:
Manfred Karrer 2018-08-17 13:08:04 +02:00
parent 5952fa2928
commit 454506aca1
No known key found for this signature in database
GPG Key ID: 401250966A6B2C46

View File

@ -243,8 +243,8 @@ public class VoteResultView extends ActivatableView<GridPane, Void> implements B
cycleListItemList.clear();
bsqStateService.getCycles().forEach(cycle -> {
List<Proposal> proposalsForCycle = proposalService.getProposalPayloads().stream()
.filter(proposalPayload -> cycleService.isTxInCycle(cycle, proposalPayload.getProposal().getTxId()))
.map(ProposalPayload::getProposal)
.filter(proposal -> cycleService.isTxInCycle(cycle, proposal.getTxId()))
.collect(Collectors.toList());
List<EvaluatedProposal> evaluatedProposalsForCycle = voteResultService.getAllEvaluatedProposals().stream()