fix(ui): fix network dupes filtering (#1294)

* fix(ui): fix network dupes filtering

* fix(ui): fix for network filtering

---------

Co-authored-by: nick-delirium <nikita@openreplay.com>
This commit is contained in:
Shekar Siri 2023-05-31 10:29:36 +02:00 committed by GitHub
parent 6529c8b2b5
commit 15d35de548
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -174,9 +174,10 @@ function NetworkPanel({ startedAt }: { startedAt: number }) {
resourceList.filter(res => !fetchList.some(ft => {
// res.url !== ft.url doesn't work on relative URLs appearing within fetchList (to-fix in player)
if (res.name === ft.name) {
if (res.start === ft.start) return true;
if (res.time === ft.time) return true;
if (res.url.includes(ft.url)) {
return Math.abs(res.time - ft.time) < 300;
return Math.abs(res.time - ft.time) < 350
|| Math.abs(res.timestamp - ft.timestamp) < 350;
}
}