Skip to content

Commit

Permalink
fix: nuxt content loss on org pages
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Jul 25, 2024
1 parent 9a5e384 commit af7ff65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/pages/[user].vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ if (blocking.value) {
const u = await useUser(route.params.user);
await cb(u);
} else {
useUser(route.params.user).then(cb);
// manually carry nuxt content over cause ????
const nuxtApp = useNuxtApp();
useUser(route.params.user).then((u) => nuxtApp.runWithContext(() => cb(u)));
}
async function cb(u: Ref<User | null>) {
Expand Down

0 comments on commit af7ff65

Please sign in to comment.