浏览代码

fix getActiveProposals

Joystream Stats 2 年之前
父节点
当前提交
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,