Fix default tab not being selected (#2733)

This commit is contained in:
Anbraten 2023-11-04 14:20:04 +01:00 committed by GitHub
parent dffdcdaac0
commit 5f8e252fba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ export function useTabsProvider({
const hashTab = route.hash.replace(/^#/, ''); const hashTab = route.hash.replace(/^#/, '');
// eslint-disable-next-line no-param-reassign // eslint-disable-next-line no-param-reassign
activeTab.value = hashTab ?? tabs.value[0].id; activeTab.value = hashTab || tabs.value[0].id;
}); });
} }