generated from Flycro/laravel-nuxt
fix: Hopefully fix SSR in Navigation #2
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -22,8 +22,6 @@ const links: NavigationTree[] = [
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
await useAsyncData('user', () => authStore.fetchUser())
|
|
||||||
|
|
||||||
if (authStore.user?.roles.includes('admin')) {
|
if (authStore.user?.roles.includes('admin')) {
|
||||||
links.push({
|
links.push({
|
||||||
label: 'Admin',
|
label: 'Admin',
|
||||||
@@ -11,8 +11,6 @@ const links = [{
|
|||||||
icon: 'i-heroicons-arrow-left-on-rectangle',
|
icon: 'i-heroicons-arrow-left-on-rectangle',
|
||||||
}]
|
}]
|
||||||
|
|
||||||
await useAsyncData('user', () => authStore.fetchUser())
|
|
||||||
|
|
||||||
if (authStore.user?.roles.includes('admin')) {
|
if (authStore.user?.roles.includes('admin')) {
|
||||||
links.push({
|
links.push({
|
||||||
label: 'Admin',
|
label: 'Admin',
|
||||||
Reference in New Issue
Block a user