diff --git a/app.js b/app.js index c10cd8e81..37d507aca 100644 --- a/app.js +++ b/app.js @@ -28,49 +28,23 @@ const CountryItem = { components: { ChannelItem }, - props: ['item', 'normQuery', 'regQuery'], - data() { - return { - count: 0 - } - }, - computed: { - countryChannels() { - if (!this.normQuery) return this.item.channels - - return ( - this.item.channels.filter(c => { - const normResult = c.key.includes(this.normQuery) - const regResult = this.regQuery - ? this.regQuery.test(c.name) || this.regQuery.test(c.id) - : false - - return normResult || regResult - }) || [] - ) - } - }, - watch: { - countryChannels: function (value) { - this.count = value.length - } - }, + props: ['channels', 'normQuery', 'regQuery', 'country'], template: `