More debuging of route
This commit is contained in:
@@ -9,8 +9,10 @@
|
||||
if (process.browser) {
|
||||
console.log('localstorage', localStorage.getItem('supabase.auth.token'));
|
||||
}
|
||||
console.log(`params`, params);
|
||||
const parsedUser = JSON.parse(params.user);
|
||||
|
||||
console.log(`parsedUser`, parsedUser);
|
||||
if (parsedUser && parsedUser.id) {
|
||||
const { data: orgMember } = await supabase
|
||||
.from('organizationmember')
|
||||
.select(`organization_id`)
|
||||
@@ -24,6 +26,12 @@
|
||||
|
||||
return { allCourses, organizationId: orgMember.organization_id };
|
||||
}
|
||||
|
||||
return {
|
||||
allCourses: [],
|
||||
organizationId: null,
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user