From db4997c07f085731882ffbdeece99eef1c34e6ac Mon Sep 17 00:00:00 2001 From: Zero King Date: Sat, 3 Oct 2020 16:37:50 +0800 Subject: [PATCH] fix: Array length check (#1300) --- app/javascript/dashboard/components/widgets/ChannelItem.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components/widgets/ChannelItem.vue b/app/javascript/dashboard/components/widgets/ChannelItem.vue index 39fa2e028..32989cc76 100644 --- a/app/javascript/dashboard/components/widgets/ChannelItem.vue +++ b/app/javascript/dashboard/components/widgets/ChannelItem.vue @@ -56,7 +56,7 @@ export default { computed: { isActive() { const { key } = this.channel; - if (Object.keys(this.enabledFeatures) === 0) { + if (Object.keys(this.enabledFeatures).length === 0) { return false; } if (key === 'facebook') {