]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(files): unnecessary navigation change detection
authorJohn Molakvoæ <skjnldsv@protonmail.com>
Sat, 12 Aug 2023 15:09:52 +0000 (17:09 +0200)
committerJohn Molakvoæ <skjnldsv@protonmail.com>
Thu, 17 Aug 2023 16:56:38 +0000 (18:56 +0200)
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
apps/files/src/views/Navigation.vue

index 068db016ddb51985753d30738e74948bacd175bd..9b1df413ccc69ef88ff25db9188effe1d0f5b999 100644 (file)
@@ -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)
+                       }
                },
        },