Merge branch 'fix/pr-cookie' into 'develop'

fix: remove log + add comments

See merge request geovisio/website!104
This commit is contained in:
Jean Andreani
2023-11-21 15:11:51 +00:00
2 changed files with 2 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ function getAuthRoute(authRoute: string, nextRoute: string): string {
}api/${authRoute}?next_url=${encodeURIComponent(`${next}`)}`
}
// This function to decode the flask cookie and have the user information like username
function decodingFlaskCookie(cookie: string): string {
const cookieFormatted = cookie
.split('.')[1]

View File

@@ -308,8 +308,7 @@ const getUserId = computed<string>(() => cookies.get('user_id'))
onMounted(async () => {
isLoading.value = true
try {
const { data } = await axios.get('api/users/me/collection?limit=1')
console.log(data)
const { data } = await axios.get('api/users/me/collection')
collectionBbox.value = data.extent.spatial.bbox[0]
userSequences.value = getRelChild(data.links)
isLoading.value = false