Исправил появление лишних стримов из WS, если указан паттерн фильтрации

This commit is contained in:
saber-nyan 2019-05-22 10:26:12 +03:00
parent 1230b77f2d
commit 1ad27320a7
No known key found for this signature in database
GPG Key ID: 7B069E9C295E6B4A

View File

@ -141,6 +141,9 @@ export default {
});
},
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) {
this.streams.pop();
}