From d968a6e63bb6325d91d08da9c01492ec74a6560a Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Thu, 15 Sep 2022 14:04:56 -0700 Subject: [PATCH] fix channels --- package.json | 2 +- packages/client/src/pages/channels.vue | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1500ce882..257aa7c86 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "12.119.0-calc.1-rc.3", + "version": "12.119.0-calc.1-rc.4", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/pages/channels.vue b/packages/client/src/pages/channels.vue index ae43b6a44..cbc23a90a 100644 --- a/packages/client/src/pages/channels.vue +++ b/packages/client/src/pages/channels.vue @@ -54,8 +54,13 @@ import 'swiper/scss/virtual'; const router = useRouter(); -let tab = $ref('featured'); const tabs = ['featured', 'following', 'owned']; +let tab = $computed({ + get: () => tabs[0], + set: (x) => { + syncSlide(tabs.indexOf(x)); + }, +}); const featuredPagination = { endpoint: 'channels/featured' as const,