Fix ProfileView making weird request when leaving the view

This commit is contained in:
Marco Realacci 2023-01-15 15:38:15 +01:00
parent 811a5190eb
commit 8b38411710

View file

@ -26,7 +26,7 @@ export default {
watch: { watch: {
'$route.params.user_id': { '$route.params.user_id': {
handler: function (user_id) { handler: function (user_id) {
this.refresh() if (user_id !== null && user_id !== undefined) this.refresh()
}, },
deep: true, deep: true,
immediate: true immediate: true