Ver Fonte

fix getActiveProposals

Joystream Stats há 2 anos atrás
pai
commit
5a7c37b8d2
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      api.ts

+ 1 - 1
api.ts

@@ -394,7 +394,7 @@ export const getActiveProposals = async (
 ): Promise<ProposalId[]> =>
   api.query.proposalsEngine.activeProposalIds
     .keys()
-    .then((ids) => ids.map(([key]) => key as unknown as ProposalId));
+    .then((keys) => keys.map(({ args: [id] }) => id as ProposalId));
 
 export const getProposalCount = async (
   api: ApiPromise,