From 8bf82af539a74ad1592269d2bac428b800f8a9cd Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Fri, 8 May 2020 12:00:42 +0200 Subject: [PATCH] Filter extrinsics from system events (re-apply) (#2707) --- packages/page-explorer/src/BlockInfo/ByHash.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/page-explorer/src/BlockInfo/ByHash.tsx b/packages/page-explorer/src/BlockInfo/ByHash.tsx index 59f0778165..6e3e5f877a 100644 --- a/packages/page-explorer/src/BlockInfo/ByHash.tsx +++ b/packages/page-explorer/src/BlockInfo/ByHash.tsx @@ -28,8 +28,8 @@ function BlockByHash ({ className, value }: Props): React.ReactElement { const events = useCall(api.query.system.events.at, [value], { isSingle: true, transform: (events: EventRecord[]): KeyedEvent[] => - events.map((record) => ({ - key: `${Date.now()}-${record.hash.toHex()}`, + events.map((record, index) => ({ + key: `${Date.now()}-${index}-${record.hash.toHex()}`, record })) }); @@ -87,7 +87,7 @@ function BlockByHash ({ className, value }: Props): React.ReactElement { !phase.isApplyExtrinsic)} label={t('system events')} />