From 65bf28907ee3679499fc9a6c4b0bfe02dd78cdca 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 1500ce882a..257aa7c865 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 ae43b6a44e..cbc23a90a9 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,