From 2b8833ddeecfe6de7060b827828ed3d1989bf6d2 Mon Sep 17 00:00:00 2001 From: niubility000 <76441520+niubility000@users.noreply.github.com> Date: Sat, 16 Oct 2021 02:35:40 +0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Ramires Viana <59319979+ramiresviana@users.noreply.github.com> --- frontend/src/components/Sidebar.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/Sidebar.vue b/frontend/src/components/Sidebar.vue index 57eb5dce..2986b6c7 100644 --- a/frontend/src/components/Sidebar.vue +++ b/frontend/src/components/Sidebar.vue @@ -126,12 +126,12 @@ export default { }, methods: { toRoot() { - this.$router.push({ path: "/files/" }); - this.$store.commit('closeHovers'); + this.$router.push({ path: "/files/" }, () => {}); + this.$store.commit("closeHovers"); }, toSettings() { - this.$router.push({ path: "/settings" }); - this.$store.commit('closeHovers'); + this.$router.push({ path: "/settings" }, () => {}); + this.$store.commit("closeHovers"); }, help() { this.$store.commit("showHover", "help");