fix: MenuBottom settings are always empty (#3091)

Co-authored-by: Clovis <clovis@synapse-medicine.com>
This commit is contained in:
Clovis 2024-12-16 05:12:48 +01:00 committed by GitHub
parent 1e156ec82b
commit 83513bf624
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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