Filter extrinsics from system events (re-apply) (#2707)
This commit is contained in:
parent
02dcf17257
commit
8bf82af539
@ -28,8 +28,8 @@ function BlockByHash ({ className, value }: Props): React.ReactElement<Props> {
|
||||
const events = useCall<KeyedEvent[]>(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<Props> {
|
||||
<Column>
|
||||
<Events
|
||||
eventClassName='explorer--BlockByHash-block'
|
||||
events={events}
|
||||
events={events?.filter(({ record: { phase } }) => !phase.isApplyExtrinsic)}
|
||||
label={t('system events')}
|
||||
/>
|
||||
</Column>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user