mirror of
https://github.com/Av0idD4rk/packmate.git
synced 2026-10-25 07:29:25 +00:00
Исправил появление лишних стримов из WS, если указан паттерн фильтрации
This commit is contained in:
parent
1230b77f2d
commit
1ad27320a7
@ -141,6 +141,9 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
onGotNewStream(stream) {
|
onGotNewStream(stream) {
|
||||||
|
if (this.$route.query.pId && !stream.foundPatterns.some(e => e.id === this.$route.query.pId)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (this.streams.length > this.$store.state.pageSize * 2) {
|
if (this.streams.length > this.$store.state.pageSize * 2) {
|
||||||
this.streams.pop();
|
this.streams.pop();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user