From af44cc79fa36f5ae65412efd51d0c46a9ad74032 Mon Sep 17 00:00:00 2001 From: John Molakvoæ Date: Sat, 12 Aug 2023 17:09:52 +0200 Subject: fix(files): unnecessary navigation change detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- apps/files/src/views/Navigation.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'apps/files/src') diff --git a/apps/files/src/views/Navigation.vue b/apps/files/src/views/Navigation.vue index 068db016ddb..9b1df413ccc 100644 --- a/apps/files/src/views/Navigation.vue +++ b/apps/files/src/views/Navigation.vue @@ -161,10 +161,12 @@ export default { watch: { currentView(view, oldView) { - this.Navigation.setActive(view) - logger.debug('Navigation changed', { id: view.id, view }) + if (view.id !== oldView?.id) { + this.Navigation.setActive(view) + logger.debug('Navigation changed', { id: view.id, view }) - this.showView(view, oldView) + this.showView(view, oldView) + } }, }, -- cgit v1.2.3