fix: remove nav buttons from initial selection on setting page (#2803)

pull/2807/head
TAKAHASHI Shuuji 2024-04-13 02:22:34 +09:00 zatwierdzone przez GitHub
rodzic 14162f8bcb
commit 9c916e0932
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -25,7 +25,7 @@ const defaultSelectedNavButtonNames = computed<NavButtonName[]>(() =>
: ['explore', 'local', 'federated', 'moreMenu'],
)
const navButtonNamesSetting = useLocalStorage<NavButtonName[]>(STORAGE_KEY_BOTTOM_NAV_BUTTONS, defaultSelectedNavButtonNames.value)
const selectedNavButtonNames = ref(navButtonNamesSetting.value)
const selectedNavButtonNames = ref<NavButtonName[]>([])
const selectedNavButtons = computed<NavButton[]>(() =>
selectedNavButtonNames.value.map(name =>