Closed elboletaire closed 2 months ago
For the first thing, it was my fault, I omitted the limit I don't remember for which reason. https://github.com/vocdoni/explorer/pull/123/commits/51ad232e4f7fa3b4e26fab58241f5d1bea5d7ccf
But for the second thing... I don't understand you. You are seeing only the id because the election is of type PublishedElection | ArchivedElection | InvalidElection
to access to all the properties you have to cast the election to PublishedElection
Doing some changes, I've found out some weird types in the elections list. On one side, the
filters
should allow setting thelimit
, since it's just an object spread to the method, which already allows setting the limit:On the other hand, the elections list is actually returning more election information than we've typed, not just its id, but the typing here only returns the election id: