diff --git a/packages/frontend/src/components/MkVisibilityPicker.vue b/packages/frontend/src/components/MkVisibilityPicker.vue index b7600e7f95..dc450d37b6 100644 --- a/packages/frontend/src/components/MkVisibilityPicker.vue +++ b/packages/frontend/src/components/MkVisibilityPicker.vue @@ -37,11 +37,11 @@ SPDX-License-Identifier: AGPL-3.0-only {{ i18n.ts._visibility.specifiedDescription }} - + @@ -51,7 +51,7 @@ import { nextTick, shallowRef, ref } from 'vue'; import * as Misskey from 'misskey-js'; import MkModal from '@/components/MkModal.vue'; import { i18n } from '@/i18n.js'; -import * as os from "@/os.js"; +import * as os from '@/os.js'; const modal = shallowRef>(); @@ -82,18 +82,20 @@ const v = ref(props.currentVisibility); */ const channels = ref([]); -async function getChannel(){ - const res = await os.api('channels/my-favorites', { - limit: 100, - }); - channels.value.splice(0, 0, ...res); + +async function getChannel() { + const res = await os.api('channels/my-favorites', { + limit: 100, + }); + channels.value.splice(0, 0, ...res); } + getChannel(); -async function chooseChannel(channel: string ){ - emit("changeChannel", channel); - await nextTick(); - if (modal.value) modal.value.close(); +async function chooseChannel(channel: string ) { + emit('changeChannel', channel); + await nextTick(); + if (modal.value) modal.value.close(); } function choose(visibility: typeof Misskey.noteVisibilities[number]): void {