3
0
Joystream Stats 2 жил өмнө
parent
commit
5a7c37b8d2
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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,