From 85bbf7faf9e5cf0eaa3e7e51d9d7598985151898 Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Fri, 14 Feb 2020 23:05:59 +0100 Subject: [PATCH] fix: don't make summoner basic request if we only change tab --- client/src/layouts/Default.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/layouts/Default.vue b/client/src/layouts/Default.vue index d7861e6..b982fc5 100644 --- a/client/src/layouts/Default.vue +++ b/client/src/layouts/Default.vue @@ -160,7 +160,9 @@ export default { }, watch: { - $route() { + $route(to, from) { + if (from.params.region === to.params.region && from.params.name === to.params.name) + return this.apiCall() } },