diff --git a/packages/client/src/components/MkChannelFollowButton.vue b/packages/client/src/components/MkChannelFollowButton.vue index c1910bc595..98e239195c 100644 --- a/packages/client/src/components/MkChannelFollowButton.vue +++ b/packages/client/src/components/MkChannelFollowButton.vue @@ -27,10 +27,11 @@ import { ref } from "vue"; import * as os from "@/os"; import { i18n } from "@/i18n"; import icon from "@/scripts/icon"; +import type { entities } from "firefish-js"; const props = withDefaults( defineProps<{ - channel: Record; + channel: entities.Channel; full?: boolean; }>(), { @@ -38,7 +39,7 @@ const props = withDefaults( }, ); -const isFollowing = ref(props.channel.isFollowing); +const isFollowing = ref(props.channel.isFollowing ?? false); const wait = ref(false); async function onClick() { diff --git a/packages/client/src/components/MkChannelList.vue b/packages/client/src/components/MkChannelList.vue index 15f199c90f..ce2b7790d4 100644 --- a/packages/client/src/components/MkChannelList.vue +++ b/packages/client/src/components/MkChannelList.vue @@ -11,7 +11,7 @@ -